How can we use default wordpress text editor for my wordpress plugin.Any suggections please?
Leave a Reply
You must be logged in to post a comment.
How can we use default wordpress text editor for my wordpress plugin.Any suggections please?
You must be logged in to post a comment.
The WordPress Text editor is an application of the TinyMCE Editor. You can utilize the files located in wp_includes/js/tinymce and create an instance of the editor on your own, according to the documentation.
Check out this article for example instructions:
http://wordpress.org/support/topic/how-i-can-use-tinymce-for-my-own-plugin
As of WordPress 3.3
the_editor
has deprecated in favor ofwp_editor
. wp_editor uses the new media uploader and takes advantage of all the new features of WordPress 3.5.x Documentation here: http://codex.wordpress.org/Function_Reference/wp_editorA very good example of how to use it can be found at Wptuts+ here: http://wp.tutsplus.com/articles/tips-articles/quick-tip-using-wp_editor/
very easy try this code
it’s working
Very easy:
This will generate a lot of html tags. But the one you will be interested in is the textarea with its name set to $editor_id. So when the form is submitted, you can save that content.
You can find more info here: https://codex.wordpress.org/Function_Reference/wp_editor