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?
- Can we write custom DOM manipulation inside edit.js file while developing custom Gutenberg block?
- Can display plugin without shortcode?
- How to make premium plugin? I want to limit it until verification
- How can I create a wp plugin with this code
- product-attribute-slug-is-too-long-28-characters-max
- Custom plugin & calling REST api of wordpress instance the plugins is running on
- Add variables from rewrite rules to query var
- Multiple dynamic Tax Query – pass taxonomy argument from array
- The plugin generated 683 characters of unexpected output during activation
- Add default custom taxonomy to plugin activation
- add_editor_style to the blog editor view (Gutenberg?)
- WooCommerce maintaince mode by using php
- Rerender core Templates with with ToggleControl but it doesnt recognize block type
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- How does update method in Widget class saves $instance array from Select tag?
- Is there a way to get rendered html content of a WP post after updating?
- howTo let wordpress endpoint return html-page
- How to show the posts listing on dashboard or custom page in admin panel?
- Can’t load a script in my plugin page
- Gutenberg – Call google map render function in save after DOM has been rendered
- GET request return value as error instead of success
- How to update global variables in plugin activation callback?
- Settings API not saving
- Woocommerce get_term_by() in transition_post_status hook doesn’t works
- Plugin Install Issue “-1” Appended to end of plugin name
- Google Web Core Vitals – management, how to in wordpress and advice
- Detect if requested page is PWA on server side
- Allowing duplicating users with same user_login and user_email
- Information and Page from WordPress Plugin
- Why does theme’s reset CSS have higher precedence of plugin’s CSS?
- How to add quick edit on the list of users to edit custom fields?
- How to control ajax calls without effecting memory of server?
- How to query a nested field in wordpress api using _fields param
- function add custom fields to media gallery
- How to Run Plugin on Server Without Web Browser
- WordPress admin panel not working
- Impossible to declare box-shadow with wp.customize?
- update_option() passing empty array() but still updating
- Bad request 400 using class based files
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- How do I add a 5 digit ZIP code validation to a Contact7 form?
- Gutenberg block breaks when showing new data
- Allow contributor user role to perform copy operation PHP
- How to use own css of functionality plugin?
- Get Custom taxonomy parent with wordpress REST API
- How to add .ini file type to the plugin editor to read and edit?
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- What to do with the .git folder in a WordPress plugin during local development
- register_meta not showing custom post type metabox data in rest api
- Trying to rename a file upload as the hash of file content on wordpress