mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 04:32:16 +08:00
Fix smart annotation on step text and checklist [SCI-7059]
This commit is contained in:
parent
899ab608f8
commit
7992cd97a1
2 changed files with 9 additions and 1 deletions
|
@ -117,6 +117,9 @@
|
|||
},
|
||||
enableEdit(e) {
|
||||
if (e && $(e.target).hasClass('atwho-user-popover')) return
|
||||
if (e && $(e.target).hasClass('record-info-link')) return
|
||||
if (e && $(e.target).parent().hasClass('atwho-inserted')) return
|
||||
|
||||
this.editing = true;
|
||||
this.focus();
|
||||
this.$nextTick(() => {
|
||||
|
|
|
@ -118,8 +118,13 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
initTinymce() {
|
||||
initTinymce(e) {
|
||||
let textArea = `#${this.objectType}_textarea_${this.objectId}`;
|
||||
|
||||
if (e && $(e.target).hasClass('atwho-user-popover')) return
|
||||
if (e && $(e.target).hasClass('record-info-link')) return
|
||||
if (e && $(e.target).parent().hasClass('atwho-inserted')) return
|
||||
|
||||
TinyMCE.init(textArea, (data) => {
|
||||
if (data) {
|
||||
this.$emit('update', data)
|
||||
|
|
Loading…
Reference in a new issue