1

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?

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",
        }
    ]
});

1 Answer 1

0

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.

2
  • This is all I could find: "tinymce": function () {return conf._editor;}
    – eclipsis
    Commented Mar 10, 2014 at 17:32
  • Then the next thing to my opinion would be to check the conf object wherever it is (if it isn't in minified or obfuscated code) Commented Mar 10, 2014 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.