How can we use default wordpress text editor for my wordpress plugin.Any suggections please?
相关问题
- Display product ACF field value in Woocommerce tra
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
- change the font size in tag cloud
相关文章
- wordpress新增页面如何个性化设置
- Call non-static methods on custom Unity Android Pl
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- How to obtain the enable admission controller list
- Change order status just after payment in WooComme
- Why is my dropzone javascript form not working?
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:
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
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 these articles for example instructions:
http://www.keighl.com/2010/01/tinymce-in-wordpress-plugins/
http://wordpress.org/support/topic/how-i-can-use-tinymce-for-my-own-plugin
very easy try this code it's working