mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This reverts commit 601853fc84.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import _ from 'lodash';
|
||||
import React from 'react';
|
||||
|
||||
import { SlatePrism } from '@grafana/ui';
|
||||
// @ts-ignore
|
||||
import PluginPrism from 'slate-prism';
|
||||
// @ts-ignore
|
||||
import Prism from 'prismjs';
|
||||
|
||||
// dom also includes Element polyfills
|
||||
import QueryField from 'app/features/explore/QueryField';
|
||||
@@ -22,7 +24,7 @@ class ElasticsearchQueryField extends React.PureComponent<Props, State> {
|
||||
super(props, context);
|
||||
|
||||
this.plugins = [
|
||||
SlatePrism({
|
||||
PluginPrism({
|
||||
onlyIn: (node: any) => node.type === 'code_block',
|
||||
getSyntax: (node: any) => 'lucene',
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user