mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: update default content style
This commit is contained in:
parent
7f3db24d05
commit
0feac00ea8
@ -145,7 +145,8 @@ const mutations = {
|
|||||||
state.output = output
|
state.output = output
|
||||||
},
|
},
|
||||||
clearEditorToDefault(state) {
|
clearEditorToDefault(state) {
|
||||||
state.editor.setValue(DEFAULT_CONTENT)
|
const doc = formatDoc(DEFAULT_CONTENT)
|
||||||
|
state.editor.setValue(doc)
|
||||||
state.cssEditor.setValue(DEFAULT_CSS_CONTENT)
|
state.cssEditor.setValue(DEFAULT_CSS_CONTENT)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,6 @@ export default {
|
|||||||
if (this.changeTimer) clearTimeout(this.changeTimer);
|
if (this.changeTimer) clearTimeout(this.changeTimer);
|
||||||
this.changeTimer = setTimeout(() => {
|
this.changeTimer = setTimeout(() => {
|
||||||
this.onEditorRefresh()
|
this.onEditorRefresh()
|
||||||
console.log('tick');
|
|
||||||
saveEditorContent(this.editor, '__editor_content')
|
saveEditorContent(this.editor, '__editor_content')
|
||||||
}, 300);
|
}, 300);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user