mirror of
https://github.com/e107inc/e107.git
synced 2025-10-11 21:15:09 +02:00
More fixes and enhancements - bbcodes, tinymce, js
This commit is contained in:
@@ -242,13 +242,14 @@ function insertTable() {
|
||||
} else
|
||||
inst.execCommand('mceInsertContent', false, html);
|
||||
|
||||
tinymce.each(dom.select('table[data-mce-new]'), function(node) {
|
||||
tinymce.each(dom.select('table[data-mce-new]'), function(node) {
|
||||
var tdorth = dom.select('td,th', node);
|
||||
|
||||
// Fixes a bug in IE where the caret cannot be placed after the table if the table is at the end of the document
|
||||
if (tinymce.isIE && node.nextSibling == null) {
|
||||
dom.insertAfter(dom.create('p'), node);
|
||||
}
|
||||
}
|
||||
|
||||
var tdorth = dom.select('td,th', node);
|
||||
try {
|
||||
// IE9 might fail to do this selection
|
||||
inst.selection.setCursorLocation(tdorth[0], 0);
|
||||
|
Reference in New Issue
Block a user