assets/precompiled/tinymce/plugins/table/editor_plugin_src.js in tinymce-rails-3.4.4.0.2 vs assets/precompiled/tinymce/plugins/table/editor_plugin_src.js in tinymce-rails-3.4.5

- old
+ new

@@ -1128,11 +1128,11 @@ }); return r; } function moveCursorToRow(ed, node, row) { - var srcColumnIndex = columnIndex(ed.dom.getParent(node, 'td')); + var srcColumnIndex = columnIndex(ed.dom.getParent(node, 'td,th')); var tgtColumnIndex = findColumn(row, srcColumnIndex) var tgtNode = row.childNodes[tgtColumnIndex]; moveCursorToStartOfElement(tgtNode); } @@ -1222,10 +1222,11 @@ if (last && last.childNodes.length == 1 && last.firstChild.nodeName == 'BR') ed.dom.remove(last); }); fixTableCaretPos(); + ed.startContent = ed.getContent({format : 'raw'}); } }); // Register action commands each({ @@ -1358,6 +1359,6 @@ } }); // Register plugin tinymce.PluginManager.add('table', tinymce.plugins.TablePlugin); -})(tinymce); \ No newline at end of file +})(tinymce);