Using TinyMCE in plugin?

I’ve successfully integrated DataTables Editor into WordPress as its own plugin. It loads successfully and I can edit a DataTables’ table. What I’m trying to figure out is how to utilize WordPress’ TinyMCE within DataTables Editor.

DataTables Editor has its own TinyMCE plugin that allows usage of TinyMCE within Editor. What has me confused… is how can I load WordPress’ own TinyMCE alongside DataTables Editor so I don’t have to load an external copy of TinyMCE?

Read More

This is the code I’m using to create the instance of 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",
        }
    ]
});

Related posts

1 comment

  1. I’d say the solution is to search through the Editor javascript code, and see how it handles the “tinymce” value in the fields array. Then just to change all links to the existing TinyMCE installation.

Comments are closed.