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:
aignatov-bio 2022-08-05 11:35:36 +02:00 committed by GitHub
commit 578314a8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)