Make task description TinyMCE init in line with the vue one [SCI-9682]

This commit is contained in:
Martin Artnik 2023-11-14 11:54:50 +01:00
parent 2580e1e1eb
commit 83eb4eeb16

View file

@ -12,7 +12,12 @@ var selectedRow = null;
function initEditMyModuleDescription() { function initEditMyModuleDescription() {
var viewObject = $('#my_module_description_view'); var viewObject = $('#my_module_description_view');
viewObject.on('click', function(e) { viewObject.on('click', function(e) {
if ($(e.target).hasClass('record-info-link') || $(e.target).parent().hasClass('record-info-link')) return; if (e && $(e.target).prop("tagName") === 'A') 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('record-info-link')) return;
if (e && $(e.target).parent().hasClass('atwho-inserted')) return;
TinyMCE.init( TinyMCE.init(
'#my_module_description_textarea', '#my_module_description_textarea',
{ {