Revert "Chore: Update Slate to 0.47.8 (#18412)" (#19167)

This reverts commit 601853fc84.
This commit is contained in:
Dominik Prokop
2019-09-17 13:21:50 +02:00
committed by David
parent 601853fc84
commit 503dccb771
51 changed files with 1320 additions and 1707 deletions

View File

@@ -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',
}),