Using WordPress' built-in TinyMCE instance w/ Editor?
Using WordPress' built-in TinyMCE instance w/ Editor?
Hi all, I've recently configured DataTables and Editor to run on my WordPress site. I queued up the "editor.tinymce.js" plugin (https://editor.datatables.net/fields/plugins) so I can use TinyMCE w/ Editor on one of my site's pages. The issue I'm running into is how to properly call up TinyMCE, being it is built into WordPress.
This is the standard method of calling TinyMCE in WordPress:
[code]<?php wp_editor( $content, $editor_id, $settings = array() ); ?>[/code]
I'm just not sure how to apply this code in the context of the "editor.tinymce.js" file. Any help would be appreciated. Page I'm having the issue with: https://www.dcturano.com/to-do_list/
[code]
var editor = new $.fn.dataTable.Editor({
"ajaxUrl": "../dct-content/plugins/datatables/php/table.qpidvulh_to-do_list.php",
"domTable": "#qpidvulh_to-do_list",
"fields": [
{
"label": "Item",
"name": "item",
"type": "tinymce"
}
]
});
[/code]
http://onetarek.com/wordpress/tutorial-how-to-use-tinymce-wyswig-editor-in-wordpress-plugin-theme-admin-page/
This is the standard method of calling TinyMCE in WordPress:
[code]<?php wp_editor( $content, $editor_id, $settings = array() ); ?>[/code]
I'm just not sure how to apply this code in the context of the "editor.tinymce.js" file. Any help would be appreciated. Page I'm having the issue with: https://www.dcturano.com/to-do_list/
[code]
var editor = new $.fn.dataTable.Editor({
"ajaxUrl": "../dct-content/plugins/datatables/php/table.qpidvulh_to-do_list.php",
"domTable": "#qpidvulh_to-do_list",
"fields": [
{
"label": "Item",
"name": "item",
"type": "tinymce"
}
]
});
[/code]
http://onetarek.com/wordpress/tutorial-how-to-use-tinymce-wyswig-editor-in-wordpress-plugin-theme-admin-page/
This discussion has been closed.