@krainovsd/markdown-editor 0.0.3 → 0.0.4
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/README.md +21 -1
- package/lib/cjs/editor-qKPDa91b.js +2 -0
- package/lib/cjs/editor-qKPDa91b.js.map +1 -0
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/markdown_plugin-IXFRDWyN.js +2 -0
- package/lib/cjs/markdown_plugin-IXFRDWyN.js.map +1 -0
- package/lib/cjs/vendor_vim-BHa51_r7.js +2 -0
- package/lib/cjs/vendor_vim-BHa51_r7.js.map +1 -0
- package/lib/cjs/vendor_y.next-CVyX1ZQB.js +2 -0
- package/lib/cjs/vendor_y.next-CVyX1ZQB.js.map +1 -0
- package/lib/cjs/vendor_y.websocket-Dr9ojjFR.js +2 -0
- package/lib/cjs/vendor_y.websocket-Dr9ojjFR.js.map +1 -0
- package/lib/cjs/vendor_yjs-DXWp84x5.js +2 -0
- package/lib/cjs/vendor_yjs-DXWp84x5.js.map +1 -0
- package/lib/esm/editor-CLyV23xt.js +2 -0
- package/lib/esm/editor-CLyV23xt.js.map +1 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/markdown_plugin-DdBeaig8.js +2 -0
- package/lib/esm/markdown_plugin-DdBeaig8.js.map +1 -0
- package/lib/esm/vendor_vim-PF2jWG0J.js +2 -0
- package/lib/esm/vendor_vim-PF2jWG0J.js.map +1 -0
- package/lib/esm/vendor_y.next-B9hhKe5T.js +2 -0
- package/lib/esm/vendor_y.next-B9hhKe5T.js.map +1 -0
- package/lib/esm/vendor_y.websocket-gIpX3Cmo.js +2 -0
- package/lib/esm/vendor_y.websocket-gIpX3Cmo.js.map +1 -0
- package/lib/esm/vendor_yjs-otxZW90b.js +2 -0
- package/lib/esm/vendor_yjs-otxZW90b.js.map +1 -0
- package/package.json +5 -4
- package/tmp/app/helpers/common-test.d.ts +1 -1
- package/tmp/extensions/index.d.ts +2 -2
- package/tmp/extensions/init-extensions.d.ts +2 -2
- package/tmp/extensions/keymaps/init-key-map.d.ts +17 -3
- package/tmp/extensions/markdown/image/image-widget.d.ts +9 -10
- package/tmp/extensions/markdown/markdown-parser.d.ts +2 -0
- package/tmp/extensions/settings/init-settings.d.ts +1 -1
- package/tmp/extensions/theme/theme-types.d.ts +4 -1
- package/tmp/index.d.ts +1 -1
- package/tmp/lib/utils/index.d.ts +1 -0
- package/tmp/lib/utils/random-string.d.ts +1 -0
- package/tmp/module/Editor/Editor.d.ts +6 -5
- package/tmp/module/Editor/lib/init-editor-provider.d.ts +3 -4
- package/tmp/module/Editor/lib/init-editor-state.d.ts +1 -1
- package/tmp/module/Editor/lib/init-editor.d.ts +2 -2
- package/lib/cjs/bundle.cjs +0 -2
- package/lib/cjs/bundle.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -74,6 +74,20 @@ Type: `LanguageDescription[] | undefined`
|
|
|
74
74
|
|
|
75
75
|
List of languages for markdown code section. Provided by [@codemirror/language-data](https://github.com/codemirror/language-data)
|
|
76
76
|
|
|
77
|
+
### keyMaps
|
|
78
|
+
|
|
79
|
+
Type: `KeyBinding[]`
|
|
80
|
+
|
|
81
|
+
Array of custom key map combination. Mod is Cmd on mac and Ctrl on other platforms. [More information](https://codemirror.net/docs/ref/#view.keymap)
|
|
82
|
+
|
|
83
|
+
### defaultKeyMaps
|
|
84
|
+
|
|
85
|
+
Type: `object`<br>
|
|
86
|
+
Properties:
|
|
87
|
+
- theme (`boolean`) - switch theme `Mod-Alt-a`
|
|
88
|
+
- vim (`boolean`) - switch vim mode `Mod-Alt-v`
|
|
89
|
+
|
|
90
|
+
|
|
77
91
|
### onBlur
|
|
78
92
|
|
|
79
93
|
Type: `((state: EditorState) => void) | undefined`
|
|
@@ -97,4 +111,10 @@ Execute by change text in editor.
|
|
|
97
111
|
Type: `((view: EditorView) => boolean) | undefined`
|
|
98
112
|
|
|
99
113
|
Execute by keydown event in root node of editor. <br>
|
|
100
|
-
**Warning!!!** Line break will be canceled If set `
|
|
114
|
+
**Warning!!!** Line break will be canceled If set `true` by return of function. Only `shift + Enter` will be worked.
|
|
115
|
+
|
|
116
|
+
### onEscape
|
|
117
|
+
|
|
118
|
+
Type: `((view: EditorView) => boolean) | undefined`
|
|
119
|
+
|
|
120
|
+
Execute by keydown event in root node of editor.
|