2008-02-19 Stanislas Rolland <stanislas.rolland@fructifor.ca>
* Fixed bug #7583: htmlArea RTE should allow to markup text in absence of any block element
+ * Fixed bug #7584: htmlArea RTE: pressing TAB in last cell of table should create new row
2008-02-19 Ingo Renner <ingo@typo3.org>
2008-02-19 Stanislas Rolland <stanislas.rolland@fructifor.ca>
* Fixed bug #7583: htmlArea RTE should allow to markup text in absence of any block element
+ * Fixed bug #7584: htmlArea RTE: pressing TAB in last cell of table should create new row
2008-02-17 Stanislas Rolland <stanislas.rolland@fructifor.ca>
} else if (tableCell) {
var nextCell = tableCell.nextSibling ? tableCell.nextSibling : (tableCell.parentNode.nextSibling ? tableCell.parentNode.nextSibling.firstChild : null);
if (!nextCell) {
- nextCell = tableCell.parentNode.parentNode.firstChild.firstChild;
+ if (this.editor.plugins.TableOperations) {
+ this.editor.plugins.TableOperations.instance.onButtonPress(this.editor, "TO-row-insert-under");
+ } else {
+ nextCell = tableCell.parentNode.parentNode.firstChild.firstChild;
+ }
}
if (nextCell) {
this.editor.selectNodeContents(nextCell, true);
if (!tr) break;
var otr = tr.cloneNode(true);
clearRow(otr);
- tr.parentNode.insertBefore(otr, (/under/.test(buttonId) ? tr.nextSibling : tr));
- editor.forceRedraw();
- editor.focusEditor();
+ otr = tr.parentNode.insertBefore(otr, (/under/.test(buttonId) ? tr.nextSibling : tr));
+ this.editor.selectNodeContents(otr.firstChild, true);
break;
case "TO-row-delete":
var tr = this.getClosest("tr");