if (!capEl && caption) {\r
capEl = elm.ownerDocument.createElement('caption');\r
\r
- if (!tinymce.isIE)\r
+ if (!tinymce.isIE || tinymce.isIE11)\r
capEl.innerHTML = '<br data-mce-bogus="1"/>';\r
\r
elm.insertBefore(capEl, elm.firstChild);\r
html += '>';\r
\r
if (caption) {\r
- if (!tinymce.isIE)\r
+ if (!tinymce.isIE || tinymce.isIE11)\r
html += '<caption><br data-mce-bogus="1"/></caption>';\r
else\r
html += '<caption></caption>';\r
html += "<tr>";\r
\r
for (var x=0; x<cols; x++) {\r
- if (!tinymce.isIE)\r
+ if (!tinymce.isIE || tinymce.isIE11)\r
html += '<td><br data-mce-bogus="1"/></td>';\r
else\r
html += '<td></td>';\r
} else\r
inst.execCommand('mceInsertContent', false, html);\r
\r
- tinymce.each(dom.select('table[data-mce-new]'), function(node) {
+ tinymce.each(dom.select('table[data-mce-new]'), function(node) {\r
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 && node.nextSibling == null) {\r
+ if (tinymce.isIE && !tinymce.isIE11 && 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