There are a few ways you can go about adding a wpeditor to text areas.
- If you have the id value of the textbox you can use this JavaScript command to add the tinyMCE buttons to it dynamically.
tinyMCE.execCommand('mceAddControl', false, 'textbox_id');
- In your functions.php, add this code:
add_action( 'edit_page_form', 'mytextarea_for_page' );
function mytextarea_for_page() {
wp_editor( ' ', 'the_xyz' );
}
Replace the_xyz with the name of the textarea. The above code is for Add New PAGE. The below code is for the Add New POST:
add_action( 'edit_form_advanced', 'mytextarea_for_post' );
function mytextarea_for_post() {
wp_editor( ' ', 'the_xyz' );
}
In both cases, replace the_xyz with the name attribute of the textarea.
There are many more different ways to do this at http://wpquestions.com/question/showChrono/id/7818
Related Posts:
- 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]
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- How to use the new Dashicons for custom TinyMCE buttons?
- Add unique class or ID information to tinyMCE
- TinyMCE Anchor Button not showing
- “wp_editor” not displaying TinyMCE correctly when square brackets used in name
- Secure Validation of wp_editor in Theme Options
- Tiny MCE not adding p tag when saving theme option
- TinyMCE Editor Set Default Tab
- 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
- TinyMCE editor – new lines not rendered on front end
- How to get WP editors tinyMCE instances
- TinyMCE strips line breaks on mceAddControl
- Count Words using tinymce in the front-end
- tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- TinyMCE Plugin Parameter
- wp_editor on input changes content
- Limit Block format tags in WordPress wp_editor
- How to remove the statusbar from the default wordpress editor?
- wp.editor.initialize does not show the same default toolbar
- Stop WordPress Visual Editor converting backticks into code blocks
- TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline
- wordpress qtranslate editor text is not working [closed]
- Is it possible to disable the image alignment options in the post editor?
- How to dynamically generate wordpress editor on frontend?
- Change syntax styling of TinyMCE HTML Text Editor
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- 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
- How to apply a custom skin to WP_Editor / TinyMCE?
- Stop editor from adding “amp;” after every “&”
- TinyMCE 4 & wp_editor multiple editor issue
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- Loading a self-hosted custom @font-face into TinyMCE dropdowns (Classic Editor) via ‘tiny_mce_before_init’ filter
- Load WordPress Editor .css on Front End
- “Formats” Select Menu in WP Editor doesn’t show up with correct colour
- WordPress Editor without buttons
- Adding a class to custom TinyMCE button using WPLinks dialog box
- How to remove “justifyfull” in TinyMCE
- wp_editor Too Tall when Content is Loaded
- Inline Editing with wp_editor and tinymce (problem with textarea)
- Adding New Row of Custom TinyMCE
- How to add placeholder in wp_editor?
- How to add custom CSS (theme option) to TinyMCE?
- How to add “Insert/Edit link” button in custom popup tinymce window?
- How to disable TinyMCE from removing span tags
- TinyMCE editor is breaking my beautiful HTML
- Why did multiple line breaks stop working in text editor?
- Replace Taxomony Description Field with Visual/WYSIWYG Editor
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- TinyMCE format dropdown no longer showing style previews
- Is it possible to re-use the image details popup?
- Load tinyMCE / wp_editor() via AJAX [duplicate]
- Wait for Gutenberg or built something in ACF?
- Replicating the_editor (Media Bar, TinyMCE, Visual/HTML Tabs) functionality without a huge rewrite
- Using a dashicon for a custom button in TinyMCE?
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- WordPress MultiSite Paste from Word Tool Does not work
- How to prevent tinymce macro from inserting nbsp;?
- Append Font Family in TinyMCE
- Using multiple instances of wp_editor in Custom Post Type admin area
- WP 3.3 my rich text category editor toolbar is gone!
- WordPress visual editor broke due to non standard port?
- TinyMCE is broken
- TinyMCE – Add button that changes direction of selected text
- Disable HTML (Text) Tab in Post Editor
- Insert wp_editor on front-end with AJAX?
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- Add a TinyMCE Core Plugin Using tiny_mce_before_init
- Fontawesome icon vanishes in editor while switching text and visual mode
- editor text cut off when using 2 spaces (after periods)
- How does WordPress remember which editor is being used?
- Add buttons to the new TinyMCE WP Editor. Javascript API
- tinyMCE 4.0 custom button onclick no longer working
- Stop TinyMCE from deleting empty HTML tags
- Dynamicaly update field created with wp_editor()
- wp_editor – Media uploader button to tinymce
- Visual composer causing conflict with TinyMCE [closed]
- Overriding TinyMCE buttons – Justify button shortcodes not working
- WP Editor: Keep Bold, Underline, etc. but ignore color
- enable TinyMCE for comment forms
- TinyMCE invalid nested list markup
- Unable to save Theme Options when TinyMCE is enabled for the text area
- How can I change TinyMCE’s default block format?
- Remove MS Word comments from pasted text
- How to have html in TinyMce “Text” tab properly indented and highlighted
- TinyMCE adds a after a HR
- Localize tinymce in WordPress 3.9?
- Get the More QuickTag button back
- Preventing tinyMCE from auto formatting selected blocks of content
- get backend to front end
- Why did my get mangled, and how can I keep from happening again?