我有以下TinyMCE表插件 当按下TAB在表格中导航时,“粗体”中的代码将光标聚焦到下一个单元格。但不幸的是,闪烁的光标没有在IE9中显示,但在firefox中运行
mceTableMoveToNextRow : function(val) {
var currentCell = ed.dom.getParent(ed.selection.getNode(), 'TD');
var table = ed.dom.getParent(ed.selection.getNode(), 'table')
var nextCell;
nextCell = ed.dom.getNext(currentCell, "td");
if(nextCell == null) {
var currentRow = ed.dom.getParent(ed.selection.getNode(), 'TR');
var nextRow = ed.dom.getNext(currentRow,"tr");
if(nextRow != null) {
nextCell = nextRow.cells[0];
}
}
if (!nextCell || nextCell == null) {
var currentRow = ed.dom.getParent(ed.selection.getNode(), 'TR');
ed.execCommand("mceTableInsertRowAfter", currentCell);
var nextRow = ed.dom.getNext(currentRow,"tr");
nextCell = nextRow.cells[0];
**ed.selection.select(nextCell, true);**
//ed.selection.collapse(true);
} else {
**ed.selection.select(nextCell, true);**
}
return false;
},