Tag Info

New answers tagged

1

Try echo html_entity_decode($ccontent) .


1

Well... WordPress uses the wpeditimage tinymce plugin to perform the tasks for the "Add Media" editor button. When you click the pencil icon to edit the image... the wpeditimage plugin will read the image code, and determine if there is a value of _blank for the target attribute. If the value is _blank; the plugin will check the box when the modal window ...


0

Your syntax for passing the settings array is incorrect and also you have not specified the name for the textarea in the settings array which is why it returns you an empty alert. Syntax from WordPress Codex: wp_editor( $content, $editor_id, $settings = array() ); $content (string) (required) - Initial content for the editor $editor_id (string) ...


0

There are two parameters that you can use to change the size of the text editor generated with wp_editor(), here there are: $settings = array( 'editor_height' => 425, // In pixels, takes precedence and has no default value 'textarea_rows' => 20, // Has no visible effect if editor_height is set, default is 20 ); If editor_height is ...


0

wp_editor function accepts (array) $settings param and that one can contain textarea_name as a key. If it's not being specified, it's set by default as $editor_id. See: https://github.com/WordPress/WordPress/blob/c392ff6f90d550bad876d8a984ad6b3b8a49cd96/wp-includes/class-wp-editor.php#L44 So you might want to do something like this: foreach ($get_url as ...


0

Solution: Add wp_editor() in somewhere that works perfectly and hide it. <div class="hidden-editor-container" style="display:none;"> <?php wp_editor( '', 'editor' ); ?> </div> after that assign editor contents to the global JS variable. EDITOR = $('.hidden-editor-container').contents(); Finally when the ajax page is loaded append ...



Top 50 recent answers are included