瀏覽代碼

[#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,