mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
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:
commit
e288a1f911
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue