]> git.mxchange.org Git - friendica.git/blobdiff - library/tinymce/jscripts/tiny_mce/plugins/table/js/table.js
reverting tinymce changes, updating smarty to 3.1.19
[friendica.git] / library / tinymce / jscripts / tiny_mce / plugins / table / js / table.js
index f427f5f87eec377b087daf1632e55b32b0eb6ca5..1db243b63a69a7c4d442703c08bd673efe85e62b 100644 (file)
@@ -91,7 +91,7 @@ function insertTable() {
                if (!capEl && caption) {\r
                        capEl = elm.ownerDocument.createElement('caption');\r
 \r
-                       if (!tinymce.isIE || tinymce.isIE11)\r
+                       if (!tinymce.isIE)\r
                                capEl.innerHTML = '<br data-mce-bogus="1"/>';\r
 \r
                        elm.insertBefore(capEl, elm.firstChild);\r
@@ -199,7 +199,7 @@ function insertTable() {
        html += '>';\r
 \r
        if (caption) {\r
-               if (!tinymce.isIE || tinymce.isIE11)\r
+               if (!tinymce.isIE)\r
                        html += '<caption><br data-mce-bogus="1"/></caption>';\r
                else\r
                        html += '<caption></caption>';\r
@@ -209,7 +209,7 @@ function insertTable() {
                html += "<tr>";\r
 \r
                for (var x=0; x<cols; x++) {\r
-                       if (!tinymce.isIE || tinymce.isIE11)\r
+                       if (!tinymce.isIE)\r
                                html += '<td><br data-mce-bogus="1"/></td>';\r
                        else\r
                                html += '<td></td>';\r
@@ -242,16 +242,16 @@ function insertTable() {
        } else\r
                inst.execCommand('mceInsertContent', false, html);\r
 \r
-       tinymce.each(dom.select('table[data-mce-new]'), function(node) {\r
+       tinymce.each(dom.select('table[data-mce-new]'), function(node) {
                var tdorth = dom.select('td,th', node);\r
-\r
+
                // Fixes a bug in IE where the caret cannot be placed after the table if the table is at the end of the document\r
-               if (tinymce.isIE && !tinymce.isIE11 && node.nextSibling == null) {\r
+               if (tinymce.isIE && node.nextSibling == null) {\r
                        if (inst.settings.forced_root_block)\r
                                dom.insertAfter(dom.create(inst.settings.forced_root_block), node);\r
                        else\r
                                dom.insertAfter(dom.create('br', {'data-mce-bogus': '1'}), node);\r
-               }\r
+               }
 \r
                try {\r
                        // IE9 might fail to do this selection \r