@contentful/field-editor-markdown 1.1.11 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,10 @@ import tokens from '@contentful/f36-tokens';
9
9
  import { ConstraintsUtils, CharCounter, CharValidation, FieldConnector, ModalDialogLauncher } from '@contentful/field-editor-shared';
10
10
  import { Menu, Button, Tooltip, IconButton, Flex, Paragraph, TextLink, ModalContent, Heading, Form, FormControl, TextInput, ModalControls, Text, Radio, Checkbox, EntityList } from '@contentful/f36-components';
11
11
  import { AssetIcon, ChevronDownIcon, MoreHorizontalIcon, HeadingIcon, FormatBoldIcon, FormatItalicIcon, QuoteIcon, ListBulletedIcon, ListNumberedIcon, LinkIcon, CodeIcon, HorizontalRuleIcon, ChevronRightIcon, ChevronLeftIcon } from '@contentful/f36-icons';
12
- import transform from 'lodash-es/transform';
13
- import throttle from 'lodash-es/throttle';
14
12
  import CodeMirror from 'codemirror';
13
+ import 'codemirror/addon/edit/matchbrackets';
14
+ import throttle from 'lodash-es/throttle';
15
+ import transform from 'lodash-es/transform';
15
16
  import get from 'lodash-es/get';
16
17
  import range from 'lodash-es/range';
17
18
  import min from 'lodash-es/min';
@@ -758,9 +759,7 @@ function create(host, options) {
758
759
  min: height ? stripUnit(height) : 300,
759
760
  max: 500,
760
761
  shift: 50
761
- }; // eslint-disable-next-line -- TODO: describe this disable
762
- // @ts-ignore
763
-
762
+ };
764
763
  var cm = CodeMirror(host, {
765
764
  direction: direction,
766
765
  readOnly: readOnly,
@@ -777,7 +776,9 @@ function create(host, options) {
777
776
  tabSize: 2,
778
777
  indentWithTabs: false,
779
778
  indentUnit: 2,
780
- autoRefresh: true
779
+ autoRefresh: true,
780
+ spellcheck: true,
781
+ inputStyle: 'contenteditable'
781
782
  });
782
783
  cm.setSize('100%', EDITOR_SIZE.min);
783
784