mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 23:46:21 +08:00
Merge pull request #4389 from biosistemika/develop
August hotfix, version 1.26.0.3
This commit is contained in:
commit
a01fd78cd2
|
@ -75,7 +75,6 @@
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
editorInstance: null,
|
||||
characterCount: 0,
|
||||
blurEventHandler: null,
|
||||
active: false
|
||||
|
@ -97,6 +96,9 @@
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
editorInstance() {
|
||||
return tinyMCE.editors[0];
|
||||
},
|
||||
error() {
|
||||
if(this.characterLimit && this.characterCount > this.characterLimit) {
|
||||
return(
|
||||
|
@ -131,8 +133,7 @@
|
|||
this.$emit('update', data)
|
||||
}
|
||||
this.$emit('editingDisabled')
|
||||
}).then((editorInstance) => {
|
||||
this.editorInstance = editorInstance[0]; // TinyMCE initialization returns an array
|
||||
}).then(() => {
|
||||
this.active = true;
|
||||
this.initCharacterCount();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue