mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
fix: 任务描述保存图片失败
This commit is contained in:
parent
3203da411d
commit
856037c3c9
@ -495,7 +495,7 @@ export default {
|
|||||||
|
|
||||||
transferChange(visible) {
|
transferChange(visible) {
|
||||||
if (!visible && this.editorT != null) {
|
if (!visible && this.editorT != null) {
|
||||||
this.content = this.editorT.getBody().innerHTML;
|
this.content = this.editorT.getContent();
|
||||||
this.$emit('input', this.content);
|
this.$emit('input', this.content);
|
||||||
this.editorT.destroy();
|
this.editorT.destroy();
|
||||||
this.editorT = null;
|
this.editorT = null;
|
||||||
@ -547,13 +547,13 @@ export default {
|
|||||||
if (this.getEditor() === null) {
|
if (this.getEditor() === null) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
return this.getEditor().getBody().innerHTML;
|
return this.getEditor().getContent();
|
||||||
},
|
},
|
||||||
|
|
||||||
setContent(content) {
|
setContent(content) {
|
||||||
if (this.getEditor() === null) {
|
if (this.getEditor() === null) {
|
||||||
this.content = content;
|
this.content = content;
|
||||||
} else if (content != this.getEditor().getBody().innerHTML) {
|
} else if (content != this.getEditor().getContent()) {
|
||||||
this.getEditor().setContent(content);
|
this.getEditor().setContent(content);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user