S
S
Stanislav2017-12-22 13:31:01
JavaScript
Stanislav, 2017-12-22 13:31:01

TinyMCE4 how to find out what is blocking the ability to edit source code and links?

Greetings!
Updated modx evo, but it updated the TinyMCE editor. As a result, the possibility of editing the source code and inserting links disappeared (the window is displayed but cannot be edited). Console gives errors (swears at live() and d(...).find(...).andSelf is not a function)

screenshot

5a3cdd01b77bf801535720.jpeg

In the code, I changed live() to on() and rolled back jquery from 3.1 to 2.2.4. Errors have disappeared, but editing is still impossible. There is nothing blocking in the textarea
<textarea id="mceu_254" hidefocus="1" spellcheck="false" class="mce-textbox mce-multiline mce-abs-layout-item mce-first mce-last" style="direction: ltr; text-align: left; left: 20px; top: 20px; width: 590px; height: 187px;"></textarea>

I believe that the scripts are in conflict, but I don’t know how to determine which ones, there are no errors in the console.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav, 2017-12-24
@Chebaa

The problem lies in the conflict between Bootstrap and Tinymce
Need to add

$(document).on('focusin', function(e) {
    if ($(e.target).closest(".mce-window").length) {
        e.stopImmediatePropagation();
    }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question