mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Merge pull request #4315 from aignatov-bio/ai-sci-7059-fix-smart-annotation-for-steps
Fix smart annotation on step text and checklist [SCI-7059]
This commit is contained in:
commit
578314a8e6
|
@ -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