Add this function to you JavaScript:
function textarea_to_tinymce(id){
if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
tinyMCE.execCommand('mceAddControl', false, id);
}
}
then when you create the textarea dynamically call it and pass the textarea’s id to it.
Just make sure TinyMCE is loaded on that page before or it won’t work.
Related Posts:
- Make WordPress WYSIWYG not strip out iframe’s
- How do you add custom color swatches to all WYSIWYG editors?
- The correct way of adding TinyMCE editor to custom meta box textarea?
- Highlight Syntax Inline
- Adding a button to the WYSIWYG editor?
- What are the better WYSIWYG post editor replacement alternatives?
- WYSIWYG WordPress readme.txt file Markdown Viewer
- Having a lot of difficulty getting add_editor_style() to load into source code
- Remove text tab
- Remove WYSIWYG editor on all custom post type EXCEPT regular posts
- Keyboard Shortcut to Publish Post on the Mac
- strong tag not working in WordPress 4.0.1
- Multiple WYSIWYG editors with settings teeny => true
- Why doesn’t the WYSIWYG support H1-H6 tags?
- When creating a blog post through the WYSIWYG editor, text is not being wrapped in tags correctly when starting with a link
- How to manage heading font options located in the wysiwyg editor for posts and pages
- How do you keep the default WYSIWYG active when using a custom template?
- Any Wysiwyg tool to edit wordpress site based on given theme?
- Stop WordPress Wrapping Images In A “P” Tag
- Is there a way to get N number of WYSIWYG editors in a custom post type?
- Is it possible to remove WYSIWYG for a certain Custom Post Type?
- How to use “Add link” pop up for a WordPress widget
- How to Add WYSIWYG Editor (tinyMCE) to plugin options page compatible with WordPress 3.0 and up?
- Adding content to archive and taxonomy pages on custom post types?
- Simple rich text editor in Text widget?
- Using WordPress’ WYSIWYG for comments
- How can I improve the line break handling in the WYSIWYG editor?
- Modify links when inserted by WYSIWYG editor
- Replace Taxomony Description Field with Visual/WYSIWYG Editor
- How to set the default embed image size
- Is it possible to create nested lists in the WYSIWYG editor?
- How can I stop TinyMCE from converting my HTML entities to characters?
- Add / Remove Post Type from “Link to existing content” popup
- Cite-Tag for blockquotes
- Drag-and-drop “Panels”-style visual layout editor?
- How to set WYSIWYG editor width within wp_editor() function?
- How can I filter Microsoft Word gunk from pasted content?
- How to remove commenters ability to add hyperlinks to comments?
- Resizing the width of the WYSIWYG editor
- Snippet: Use classes instead of inline styles for text alignment
- Apply custom style to single word in WordPress
- 4.3.1 to 4.4 – WYSIWYG Editor Issues
- Pasting images removes class attribute
- data-accordion removed in Visual Editor
- Theme Advanced Styles in Visual Editor and Paragraphs
- How to remove_filter that filters iframes in posts? [duplicate]
- Disable WYSIWYG rich text editor only on post excerpt
- two tinyMCE editors in the same page
- View content from uploaded file in editor
- How to wrap the content of the main tinyMCE editor with extra tags
- Remove_filter (‘the_content’, ‘wpautop’) is not working
- Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]
- Ability to edit image via WYSIWYG
- TinyMCE strips line breaks on mceAddControl
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- Hide WYSIWYG editor on certain templates
- WordPress Wysiwyg Content not being displayed
- How do I add a listbox to the TinyMCE editor?
- Using main style.css with add_editor_style
- How can I control the HTML output of my post?
- Wysiwyg editor for P2 theme
- WYSIWYG editor in WP 3.2 plugin
- WYSIWYG – Getting the “link” button from HTML mode in Visual mode
- Custom Post Type archive link in WYSIWYG editor
- Dynamically adding WYSIWYG to metaboxes
- Add WYSIWYG to Image Description field
- Keep WYSIWYG on Blog Page
- Create anchor from Wysiwyg editor
- Convert this textarea to rich html format via wp_editor
- How to reset display of WYSIWYG editor
- Add a select a class dropdown in tinymce
- Adding multiple WYSIWYG editors to custom post type
- Add TinyMCE to CPT metaboxes in 3.1?
- content gets scrambled
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- How to allow html5 tag in WordPress
- Set post title based on first h2 element in the content section
- Custom settings page TinyMce: no formatting when echoing value of editor
- Is there a filter for editor-style.css file?
- Can Rich Text features be configured per user?
- Is Using WordPress Supplied WYSIWYG Advisable?
- Stop WordPress Visual Editor converting backticks into code blocks
- WordPress Admin Not Loading All Core Scripts
- Problem with using custom shortcode with ACF WYSIWYG field
- Creating table layout in WYSIWYG editor
- Add default text to multiple wysiwyg editors
- Prevent WordPress from messing my HTML
- How to remove p tags around img and iframe tags in the acf wysiwyg field
- WYSIWYG eating up first p in td
- Remove inline styles from the_content?
- How to integrate CLEditor to comment system?
- Adding TinyMCE buttons without removing plugin buttons?
- Remove headings option from Wysiwyg editor from ACF in a certain custom post type
- How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
- ACF Wysiwyg Editor Image srcset for responsive images [closed]
- How to Add TinyMCE to widget
- Content pulled from page template instead of editor
- Add a select option of shortcodes like dropdown in tinymce
- Wysiwyg editor errors
- Front end inline editing?