Merge pull request #2861 from aignatov-bio/ai-sci-5038-prevent-tinymce-edit-mode-when-link-click

Prevent tinymce edit mode when link click [SCI-5038]
This commit is contained in:
aignatov-bio 2020-09-22 11:41:50 +02:00 committed by GitHub
commit e288a1f911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,8 @@ function initEditMyModuleDescription() {
var viewObject = $('#my_module_description_view');
viewObject.on('click', function() {
TinyMCE.init('#my_module_description_textarea');
}).on('click', 'a', function(e) {
e.stopPropagation();
});
TinyMCE.initIfHasDraft(viewObject);
}
@ -21,6 +23,8 @@ function initEditProtocolDescription() {
var viewObject = $('#protocol_description_view');
viewObject.on('click', function() {
TinyMCE.init('#protocol_description_textarea', refreshProtocolStatusBar);
}).on('click', 'a', function(e) {
e.stopPropagation();
});
TinyMCE.initIfHasDraft(viewObject);
}