Browse Source

[#417] added function that solves a conflict between bootstrap and tinymce (#419)

Skylsmoi 6 years ago
parent
commit
89076370ad
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tracim/tracim/templates/pod.mak

+ 4 - 4
tracim/tracim/templates/pod.mak View File

@@ -55,10 +55,10 @@
55 55
         // HACK: The tiny mce source code modal contain a textarea, but we
56 56
         // can't edit it (like it's readonly). The following solution
57 57
         // solve the bug: https://stackoverflow.com/questions/36952148/tinymce-code-editor-is-readonly-in-jtable-grid
58
-        // $(document).on('focusin', function(e) {
59
-        // if ($(e.target).closest(".mce-window").length) {
60
-        //     e.stopImmediatePropagation();
61
-        // }});
58
+         $(document).on('focusin', function(e) {
59
+         if ($(e.target).closest(".mce-window").length) {
60
+             e.stopImmediatePropagation();
61
+         }});
62 62
 
63 63
         tinymce.init({
64 64
             menubar:false,