0
的OnOK要插入爲html:函數(){不希望在CKEDITOR
var dialog = this;
var contentFromTextarea = dialog.getValueOf('tab-main','content');
var rowArray = new Array();
var cellArray = new Array();
var row = '';
rowArray = contentFromTextarea.split(';');
for (var i = 0; i < rowArray.length-1; i++)
{
cellArray[i] = rowArray[i].split(':');
row += '<div>' + '<span>' + cellArray[i][0] + '</span>' + '<span>' + cellArray[i][1] + '</span>' + '</div>'
}
row = '<div>' + row + '</div>';
editor.insertHtml(row);
}
不希望被插入在CKEDITOR HTML。爲什麼? 感謝您的幫助。
你對「顯示行」有什麼看法?我怎樣才能做到這一點?對不起,這是我第一次與ckeditor合作。此前它是表格標籤。我試圖做一個插件:http://ckeditor.com/forums/Plugins/Insert-information-in-the-table--My-plugin.#comment-132595 – john