mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-19 07:08:48 +08:00
Fix TinyMCE blocking turbolinks [SCI-7729]
This commit is contained in:
parent
33dca201ba
commit
3e65ae921c
2 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ function initEditProtocolDescription() {
|
|||
var viewObject = $('#protocol_description_view');
|
||||
viewObject.on('click', function(e) {
|
||||
if ($(e.target).hasClass('record-info-link')) return;
|
||||
TinyMCE.init('#protocol_description_textarea', refreshProtocolStatusBar);
|
||||
TinyMCE.init('#protocol_description_textarea', { afterInitCallback: refreshProtocolStatusBar });
|
||||
}).on('click', 'a', function(e) {
|
||||
if ($(this).hasClass('record-info-link')) return;
|
||||
e.stopPropagation();
|
||||
|
|
|
|||
2
app/javascript/packs/tiny_mce.js
vendored
2
app/javascript/packs/tiny_mce.js
vendored
|
|
@ -472,5 +472,5 @@ $(document).on('turbolinks:before-visit', (e) => {
|
|||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue