@contentful/field-editor-markdown 1.1.10 → 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.
- package/CHANGELOG.md +10 -0
- package/dist/components/MarkdownTextarea/CodeMirrorWrapper.d.ts +1 -0
- package/dist/field-editor-markdown.cjs.development.js +7 -6
- package/dist/field-editor-markdown.cjs.development.js.map +1 -1
- package/dist/field-editor-markdown.cjs.production.min.js +1 -1
- package/dist/field-editor-markdown.cjs.production.min.js.map +1 -1
- package/dist/field-editor-markdown.esm.js +7 -6
- package/dist/field-editor-markdown.esm.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.1.12](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@1.1.11...@contentful/field-editor-markdown@1.1.12) (2023-02-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- enable spellchecking in markdown editor ([#1339](https://github.com/contentful/field-editors/issues/1339)) ([e828c93](https://github.com/contentful/field-editors/commit/e828c938333d498ce182f662e068861f5732ae1f))
|
|
11
|
+
|
|
12
|
+
## [1.1.11](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@1.1.10...@contentful/field-editor-markdown@1.1.11) (2023-02-07)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @contentful/field-editor-markdown
|
|
15
|
+
|
|
6
16
|
## [1.1.10](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@1.1.9...@contentful/field-editor-markdown@1.1.10) (2023-01-27)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
|
@@ -16,9 +16,10 @@ var tokens = _interopDefault(require('@contentful/f36-tokens'));
|
|
|
16
16
|
var fieldEditorShared = require('@contentful/field-editor-shared');
|
|
17
17
|
var f36Components = require('@contentful/f36-components');
|
|
18
18
|
var f36Icons = require('@contentful/f36-icons');
|
|
19
|
-
var transform = _interopDefault(require('lodash/transform'));
|
|
20
|
-
var throttle = _interopDefault(require('lodash/throttle'));
|
|
21
19
|
var CodeMirror = _interopDefault(require('codemirror'));
|
|
20
|
+
require('codemirror/addon/edit/matchbrackets');
|
|
21
|
+
var throttle = _interopDefault(require('lodash/throttle'));
|
|
22
|
+
var transform = _interopDefault(require('lodash/transform'));
|
|
22
23
|
var get = _interopDefault(require('lodash/get'));
|
|
23
24
|
var range = _interopDefault(require('lodash/range'));
|
|
24
25
|
var min = _interopDefault(require('lodash/min'));
|
|
@@ -765,9 +766,7 @@ function create(host, options) {
|
|
|
765
766
|
min: height ? stripUnit(height) : 300,
|
|
766
767
|
max: 500,
|
|
767
768
|
shift: 50
|
|
768
|
-
};
|
|
769
|
-
// @ts-ignore
|
|
770
|
-
|
|
769
|
+
};
|
|
771
770
|
var cm = CodeMirror(host, {
|
|
772
771
|
direction: direction,
|
|
773
772
|
readOnly: readOnly,
|
|
@@ -784,7 +783,9 @@ function create(host, options) {
|
|
|
784
783
|
tabSize: 2,
|
|
785
784
|
indentWithTabs: false,
|
|
786
785
|
indentUnit: 2,
|
|
787
|
-
autoRefresh: true
|
|
786
|
+
autoRefresh: true,
|
|
787
|
+
spellcheck: true,
|
|
788
|
+
inputStyle: 'contenteditable'
|
|
788
789
|
});
|
|
789
790
|
cm.setSize('100%', EDITOR_SIZE.min);
|
|
790
791
|
|