新增focus方法

This commit is contained in:
kuaifan 2022-03-07 15:24:48 +08:00
parent 22704b32d6
commit 2e4e827887

View File

@ -463,6 +463,13 @@
}
},
focus() {
if (this.getEditor() === null) {
return "";
}
return this.getEditor().focus();
},
insertImage(src) {
this.insertContent('<img src="' + src + '">');
},