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
- WordPress automatically adding ” “?
- Stop editor from removing tags and replacing them with nbsp
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- Is it possible to create nested lists in the WYSIWYG editor?
- Add a button to tinyMCE editor on Custom Post Type
- HTML5, WordPress and Tiny MCE issue – wrapping anchor tag around div results in funky output
- TinyMCE style_select – Append Classes
- Adding TinyMCE custom buttons when using teeny_mce_before_init
- Disabling TinyMCE keyboard shortcuts altogether
- Should the WP post editor B (bold) button be inserting a tag instead of in HTML5?
- TinyMCE Editor removing and and putting instead
- Add TinyMCE editor to windowManager textbox
- WordPress editor strips out anchor tags when they appear on their own line
- Sortable WYSIWYG editor
- How do I add a TinyMCE row that all users can see, instead of just admins?
- Add table button in editor without Plugin
- Make TinyMCE checkbox that returns a value instead of true/false
- Convert textarea with wp_editor
- TinyMCE as comment editor – encoding issues
- Prevent the Editor From Moving My
- How to reference TinyMCE body in my script
- Keyup events in tinymce editor not working
- Tiny MCE doesn’t look anything like my blog
- Front-end image upload from TinyME [closed]
- TinyMCE – no auto formatting using the_editor()?
- How to force insertion in editor
- Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled
- Visual Editor is blank – 404 for plugin js
- Getting shortcode attribute values and shortcode content with JavaScript regex
- Allowing style tag in TinyMCE editor
- Change the background of the TinyMCE editor with available WP arguments
- remove WYSIWYG editor but keep media button
- WordPress Tiny MCE won’t accept line breaks
- wp_tiny_mce function not found
- TinyMCE strips off the href tag inside span, if i change from text to visual
- Client on iPad accidentally adding tag to posts while writing
- TinyMCE function causes issue in AVADA theme
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- Visual editor popover or placeholder
- Adding microdata using Structured Data Markup Helper HTML
- `tinyMCE is not defined` after migrating site to server
- WordPress adding extra html coding to my data on saving
- mce_external_languages: how does it really work?
- Edit body image after insertion in 3.9.1
- Multiple TinyMCEs breaking Distraction Free Writing
- prevent caching during tinymce custom button development
- WordPress removes paragraphs. How to disable this behavior?
- WPAlchemy – Multiple TinyMCE editor blank (can’t add text)
- Add custom classes to TinyMCE generated markup
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped