mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: update copy method
This commit is contained in:
parent
1541766a07
commit
34c4b936a5
@ -177,8 +177,7 @@ export default {
|
|||||||
let clipboardDiv = document.getElementById('output');
|
let clipboardDiv = document.getElementById('output');
|
||||||
solveWeChatImage();
|
solveWeChatImage();
|
||||||
fixCodeWhiteSpace();
|
fixCodeWhiteSpace();
|
||||||
this.setHtml(solveHtml());
|
solveHtml();
|
||||||
|
|
||||||
clipboardDiv.focus();
|
clipboardDiv.focus();
|
||||||
window.getSelection().removeAllRanges();
|
window.getSelection().removeAllRanges();
|
||||||
let range = document.createRange();
|
let range = document.createRange();
|
||||||
@ -253,7 +252,7 @@ export default {
|
|||||||
document.body.removeChild(downLink)
|
document.body.removeChild(downLink)
|
||||||
},
|
},
|
||||||
...mapMutations(['clearEditorToDefault','setCurrentColor', 'setCiteStatus', 'themeChanged',
|
...mapMutations(['clearEditorToDefault','setCurrentColor', 'setCiteStatus', 'themeChanged',
|
||||||
'setHtml', 'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions'])
|
'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions'])
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.selectFont = this.currentFont;
|
this.selectFont = this.currentFont;
|
||||||
|
@ -26,9 +26,6 @@ const state = {
|
|||||||
nightMode: false
|
nightMode: false
|
||||||
};
|
};
|
||||||
const mutations = {
|
const mutations = {
|
||||||
setHtmL(state, data) {
|
|
||||||
state.html = data;
|
|
||||||
},
|
|
||||||
setEditorValue(state, data) {
|
setEditorValue(state, data) {
|
||||||
state.editor.setValue(data)
|
state.editor.setValue(data)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user