javascript - Problems with CKEditor dialog on top of Bootstrap modal window -


I've included a plugin to include code snippets on your site using CeAdetator. With it, I came to know that people have problems with the CeEdit dialog box and bootstrap modal window. None of the opened dialog boxes are centered, and text can not be entered.

A solution was found, it fixes my issues with other dialogue boxes, but it does not open any of the code pieces that this former tag plugin works with in CKEditor and bootstrap Any advice for?

  $ Fn.modal.Constructor.prototype.enforceFocus = function () {modal_this = this $ (document) .on ('focusin.modal', function (e) {if (modal_this $ element [0] == e.target & amp; ;! & Amp;!! Modal_this $ element.has (e.target) .length & amp;!! (E.target.parentNode) .hasClass ('cke_dialog_ui_input_select') & amp; amp ;! (E.target.parentNode) .hasClass ('cke_dialog_ui_input_text')) {modal_this $ element.focus ().}}}};  

After

the solution was condition

  & amp; & Amp; ! $ (E.target.parentNode) .hasClass ('cke_dialog_ui_input_textarea')  

Now it works! Hope this helps anyone with the same problem.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -