You are in luck. There is a WordPress internal function for that. It’s the wp_editor function.
The function does all the work for you. It enqueues the right scripts and style-sheets. Just pass the configuration you want.
wp_editor('Enter your text here', 'editor_id_here')
Related Posts:
- How can I stop TinyMCE from converting my HTML entities to characters?
- TinyMCE editor – new lines not rendered on front end
- TinyMCE strips line breaks on mceAddControl
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- TinyMCE Plugin Parameter
- Stop WordPress Visual Editor converting backticks into code blocks
- Is it possible to disable the image alignment options in the post editor?
- Change syntax styling of TinyMCE HTML Text Editor
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- Stop editor from adding “amp;” after every “&”
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- Creating a wp_editor instance with custom tinyMCE buttons
- Remove HTML editor and visual/HTML tabs from TinyMCE
- How to get the input of a TinyMCE editor when using on the front-end?
- Load wp_editor via ajax [duplicate]
- Why did multiple line breaks stop working in text editor?
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- Replace Taxomony Description Field with Visual/WYSIWYG Editor
- When switching from html to visual editor the tag gets corrupted
- Markup of oEmbed codes in the editor?
- How to use the new Dashicons for custom TinyMCE buttons?
- Add unique class or ID information to tinyMCE
- Is it possible to create nested lists in the WYSIWYG editor?
- TinyMCE Anchor Button not showing
- Cite-Tag for blockquotes
- “wp_editor” not displaying TinyMCE correctly when square brackets used in name
- Secure Validation of wp_editor in Theme Options
- Apply custom style to single word in WordPress
- Tiny MCE not adding p tag when saving theme option
- Add Shortcode inline inside Gutenberg block
- TinyMCE Editor Set Default Tab
- data-accordion removed in Visual Editor
- Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor
- Remove quicktag buttons but not Visual / Text editor and tabs
- How to get WP editors tinyMCE instances
- two tinyMCE editors in the same page
- WordPress tinymce prints empty P tag and break html format
- Count Words using tinymce in the front-end
- WP 3.3 my rich text category editor toolbar is gone!
- tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- How can I control the HTML output of my post?
- WYSIWYG editor in WP 3.2 plugin
- Add WYSIWYG to Image Description field
- wpeditor issue – shows both mode and not able to focus/edit during visual mode
- wp_editor on input changes content
- Disable HTML (Text) Tab in Post Editor
- Add a select a class dropdown in tinymce
- Limit Block format tags in WordPress wp_editor
- Add table button in editor without Plugin
- Custom settings page TinyMce: no formatting when echoing value of editor
- How to remove the statusbar from the default wordpress editor?
- Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?
- Can Rich Text features be configured per user?
- wp.editor.initialize does not show the same default toolbar
- TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline
- Custom TinyMCE style formats disabled
- wordpress qtranslate editor text is not working [closed]
- How to Add TinyMCE to widget
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Adding custom styles to elements, without creating new elements
- wp_editor not modify html tags of initial content
- allowing all HTML tags in tinymce editor
- Tiny MCE doesn’t look anything like my blog
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Adding CSS to admin TinyMCE editor for custom button
- How can a TinyMCE modal return formatted/visual text?
- How to apply a custom skin to WP_Editor / TinyMCE?
- TinyMCE not loading in IE8
- Allowing style tag in TinyMCE editor
- TinyMCE 4 & wp_editor multiple editor issue
- TinyMCE Advances is removing blanks (” “)
- Why Editor reformats my code
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- enable TinyMCE for comment forms
- Dynamic WordPress editor in meta box
- Best Browser for Editing Posts
- How to apply padding to TinyMCE editor?
- TinyMCE strips off the href tag inside span, if i change from text to visual
- Adding a Media Button to the WordPress Content Editor
- Wordpres Tinymce custom button (Gavick guide)
- Loading a self-hosted custom @font-face into TinyMCE dropdowns (Classic Editor) via ‘tiny_mce_before_init’ filter
- Error in backend: Failed to load plugin: tabfocus from url
- Load WordPress Editor .css on Front End
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- Preserve indentation, HTML5 shorthand in editor
- WordPress Editor without buttons
- Adding a class to custom TinyMCE button using WPLinks dialog box
- Visual editor popover or placeholder
- How to remove “justifyfull” in TinyMCE
- `tinyMCE is not defined` after migrating site to server
- WordPress adding extra html coding to my data on saving
- wp_editor Too Tall when Content is Loaded
- Inline Editing with wp_editor and tinymce (problem with textarea)
- Custom shortcode editor [BackboneJS & TinyMCE)
- TinyMCE 4.0: specifying buttons to display [duplicate]
- Adding New Row of Custom TinyMCE
- WYSIWYG with HTML source?
- How do I separate my theme’s styles from editor styles?
- Add custom classes to TinyMCE generated markup