Преглед на файлове

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

Skylsmoi преди 6 години
родител
ревизия
89076370ad
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      tracim/tracim/templates/pod.mak

+ 4 - 4
tracim/tracim/templates/pod.mak Целия файл

@@ -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,