Look how I did it in my Meta Box Class:
$editor_settings = array (
'textarea_rows' => 8
, 'media_buttons' => FALSE
, 'teeny' => TRUE
, 'tinymce' => FALSE
// a very minimal setup
, 'quicktags' => array ( 'buttons' => 'strong,em,link' )
);
wp_editor( $content, $key, $editor_settings );
$content
is the already saved content you want to show in the editor.$key
is the editor ID, it is used for the markup.- For possible settings see
wp-includes/class-wp-editor.php
and the rather short Codex page.
Visual output:
You shouldn’t need a separate CSS file.
Related Posts:
- the_editor() function
- Add a select option of shortcodes like dropdown in tinymce
- Inserting code to HTML view from a pop up initiated from visual view
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- Add self-closing shortcode button to TinyMCE in WP 4.6
- How to provide translations for a WordPress TinyMCE plugin?
- API to trigger prompt on leaving page
- How can I stop TinyMCE from converting my HTML entities to characters?
- Hook the Keydown Event in the TinyMCE Post Editor
- Has anyone managed to integrate the wp_editor inside a widget?
- How can the tinyMCE dom be manipulated (offical API does not seem to work)?
- Utilize TinyMCE hyperlink chooser outside of TinyMCE
- two tinyMCE editors in the same page
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- Bridge WordPress Media API with custom tinyMCE plugin [closed]
- Add WYSIWYG to Image Description field
- Show dialog box in TinyMCE plugin and use WordPress php functions in it
- Add a panel to edit post
- Can Rich Text features be configured per user?
- Is Using WordPress Supplied WYSIWYG Advisable?
- TinyMCE 4.7.11 custom styles using styleselect – what does the ‘attributes’ argument do?
- Rich text editor settings persist throughout all rich text editors
- How to integrate CLEditor to comment system?
- WP Editor Issue in Backend
- Asynchronously render shortcodes in TinyMCE visual editor
- Open modal when user clicks on span in visual editor
- How to dynamically generate wordpress editor on frontend?
- tinymce.get() returns error after ajax request
- TinyMCE editor turns white on Biographical info [closed]
- Translate MCE button text/tooltip in custom plugin
- How to add a widget to the post editing view?
- Moving/dragging a metabox removes TinyMCE’s content
- Can I Hook Into the TinyMCE Insert/Edit Link Button to Use Shortlink For Post?
- How can I allow the user to press enter without creating a new element in the editor?
- How to close tinymce inline popup
- How to display TinyMCE HTML view?
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- TinyMCE 4.7.11 – Enable hidden WordPress core plugins? (referencing a wp-includes from plugin.php)
- wp_editor embed shortcode not working within my plugin
- How to get values from Tinymce visual editor popup?
- Publish, Save Draft and Preview buttons do not work after being moved with jQuery
- get_option() is undefined in TinymceWindowManager
- Add Button to TinyMCE Custom Menu
- Issue with iframe in TinyMCE
- Why if i enqueue the tinymce script i get undefined error
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- Call API on post save/update and show the result in admin area
- How can I add a custom button to the post editor?
- Plugin Form Submission Best Practice
- Plugin directory “Last Updated” not changed after initial commit?
- What is the recommended way to create plugin administration forms?
- Fatal error: Call to undefined function wp_mail()
- Does WordPress have an Browser Agent?
- How Do I Load My Action Earlier Enough?
- How to check WordPress website username and password is correct
- Filter on the_content ignores shortcodes
- Custom theme sufficient or custom plugin neccessary for this feature set?
- Check spam in custom form – akismet
- get plugin directory url
- WordPress cron running twice
- PHP library that can merge stylesheet with inline style [closed]
- How to check if a stylesheet is already loaded?
- How do I change the initial quantity of a product in woocommerce?
- How to insert data to a database table when the field is not yet created?
- Show special field when correct shipping is chosen
- Custom Taxonomy to dropdown box on adminside wordpress
- wp.template() returns tags in Ajax response
- How to hide or rename “X” and “x-child” references in website source?
- Using ob_get_content to get_search_form puts into infinite loop
- How to build a fool proof AdSense revenue sharing model?
- get author of published post
- How to access all array values from do_action_ref_array()?
- How to add custom post widgets as tags into wordpress
- How to register my code as a plugin
- How to get terms for taxonomy
- If $var is empty, return 404.
- Listing wordpress users with a search function
- Plugin won’t activate
- dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists
- Plugin could not be activated because it triggered a fatal error?
- Get cat parameter from admin-ajax
- How to determine primary editor for a page/post
- Using wp_mail to send email?
- WPGut – Updating failed and shortcode?
- Limit get_next_post to posts from the same author
- how to create a shortcode from a variable in plugin
- Any way, hook to add content right before the “read more” link?
- Error Connecting to Database WHEN Installing WordPress on XAMPP [Tried All the Usual Stuff] (Pics Included)
- Adding body class in author page for custom role
- Enqueue scripts based on site.
- My enqueue admin style function doesn’t work because of ?=ver
- WordPress filter custom posts by multi terms of of a taxonomy
- Query only title/field/featured media of posts [closed]
- To remove rendering of menus and header, plugin or theme?
- How can I give access to my plugin sections in admin?
- Making plugin output customizable
- Return all roles, including custom roles
- Mapping multiple URLs to same page
- How can I replace the built in WordPress editor?