我已成功集成DataTables Editor 进入WordPress作为自己的插件。它加载成功,我可以编辑DataTables的表。我想知道的是如何在DataTables编辑器中利用WordPress的TinyMCE。
DataTables编辑器有自己的TinyMCEplugin 允许在编辑器中使用TinyMCE。什么让我困惑。。。is how can I load WordPress\' own TinyMCE alongside DataTables Editor so I don\'t have to load an external copy of TinyMCE?
这是我用来创建DataTables Editor实例的代码:
var editor = new $.fn.dataTable.Editor({
"ajaxUrl": "../dct-content/plugins/datatables-editor/php/table.qpidvulh_to-do_list.php",
"domTable": "#qpidvulh_to-do_list",
"fields": [
{
"label": "Item",
"name": "item",
"type": "tinymce",
}
]
});