Fix smart annotation on step text and checklist [SCI-7059]

This commit is contained in:
Anton 2022-08-05 11:23:36 +02:00
parent 899ab608f8
commit 7992cd97a1
2 changed files with 9 additions and 1 deletions

View file

@ -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(() => {

View file

@ -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)