decap-cms-widget-markdown 3.5.0 → 3.6.0
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/decap-cms-widget-markdown.js +6 -6
- package/dist/decap-cms-widget-markdown.js.map +1 -1
- package/dist/esm/MarkdownControl/RawEditor.js +2 -1
- package/dist/esm/MarkdownControl/Toolbar.js +11 -4
- package/dist/esm/MarkdownControl/VisualEditor.js +5 -3
- package/dist/esm/schema.js +1 -1
- package/package.json +8 -7
- package/src/MarkdownControl/RawEditor.js +1 -1
- package/src/MarkdownControl/Toolbar.js +10 -0
- package/src/MarkdownControl/VisualEditor.js +3 -2
- package/src/schema.js +1 -0
|
@@ -141,7 +141,8 @@ function Editor(props) {
|
|
|
141
141
|
|
|
142
142
|
function handleMarkClick(format) {
|
|
143
143
|
ReactEditor.focus(editor);
|
|
144
|
-
|
|
144
|
+
const markFormat = format === 'strikethrough' ? 'delete' : format;
|
|
145
|
+
toggleMark(editor, markFormat);
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
function handleBlockClick(format) {
|
|
@@ -222,7 +223,7 @@ function Editor(props) {
|
|
|
222
223
|
position: relative;
|
|
223
224
|
`}
|
|
224
225
|
>
|
|
225
|
-
<Slate editor={editor} value={editorValue} onChange={handleChange}>
|
|
226
|
+
<Slate editor={editor} value={editorValue} initialValue={editorValue} onChange={handleChange}>
|
|
226
227
|
<EditorControlBar>
|
|
227
228
|
{
|
|
228
229
|
<Toolbar
|