mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 00:41:41 +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) {
|
enableEdit(e) {
|
||||||
if (e && $(e.target).hasClass('atwho-user-popover')) return
|
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.editing = true;
|
||||||
this.focus();
|
this.focus();
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initTinymce() {
|
initTinymce(e) {
|
||||||
let textArea = `#${this.objectType}_textarea_${this.objectId}`;
|
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) => {
|
TinyMCE.init(textArea, (data) => {
|
||||||
if (data) {
|
if (data) {
|
||||||
this.$emit('update', data)
|
this.$emit('update', data)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue