The wp_editor() function allows plugin and theme developers to render a custom instance of the TinyMCE editor used by WordPress

learn more… | top users | synonyms

0
votes
0answers
22 views

wp_editor content not being saved when used in a theme customizer option

I am replacing one of the default Customize options for the Formation theme (https://wordpress.org/themes/formation) in order to add the WYSIWYG content editor to it. I've succeeded in removing the ...
0
votes
0answers
68 views

How can I enable Visual and Text tabs in a front end implementation of TinyMCE?

I have a plugin that uses TinyMCE for front end entry of content by users. However, the Text / Visual tabs are not available, and I'm not sure how to make them available. Here is the code from the ...
0
votes
1answer
35 views

Can I use wp_editor() to create a second instance of the editor in my post page?

Looking at the codex and the code they provide, it doesn't seem like I can add a second editor. This looks like something more for front-end use rather than for use in the admin. If I am wrong, can ...
0
votes
0answers
19 views

How to add the scheduled posts in existing content link in hyperlink

I am blogging with scheduled publication. Say, I have content "1" (complete and saved already) scheduled to be published tomorrow Now I have another content "2" (complete and saved already) ...
0
votes
0answers
10 views

wp_editor call with ajax [duplicate]

I'm working on a wordpress plugin that manages a database. The database has a table that has the id field name and descr. I have a php file that has two buttons, one and another rule change. When ...
0
votes
0answers
97 views

wp_editor with image upload

I would like to have a wordpress text editor on my site where users can add post and add images to the post. I'm using wp_editor in the code below. If I'm logged in as the admin and go to the live ...
0
votes
0answers
63 views

wp_editor in thickbox

I am updating a shortcode generator that I made before and I want to add in addition to text areas inputs etc.. a tinymce editor, so I call wp_editor in the ajax content of the thickbox, the editor ...
0
votes
0answers
120 views

How include the “text/visual” tabs in your own wp_editor instance?

I've made some meta boxes which use the wp_editor to create the textareas. When someone is on any page in the admin interface and moves from "visual" tab to "text" tab, all my wp_editor boxes show ...
0
votes
1answer
161 views

TinyMCE 4 & wp_editor multiple editor issue

Just updated WordPress to new 3.9, new features are great, love them. Only got some issues with tinyMCE 4. I use wp_editor to create multiple tinyMCE editors with custom field. Here is the code: ...
0
votes
0answers
224 views

problem when adding wp_editor with ajax [duplicate]

I have a problems with wp_editor() . Somewhere in my plugin, i want to dynamically add fields some are basic input, and there is also an editor. I use ajax to add these fields, and all is going as ...
0
votes
1answer
309 views

apply_filters('the_content') - make it ignore shortcodes?

I am using apply_filters('the_content) so I can see properly formatted content inside my wp editor in the backend. However, this also renders the shortcode that's in the content. I want it to ...
0
votes
0answers
56 views

apply_filters to content but ignore shortcodes

I want to prepare my content added via wp editor so it displays nicely, so I use apply_filters like so: $ld = apply_filters('the_content', $ld); That works fine for the page, but in the backend ...
0
votes
1answer
50 views

Can't update WP Editor after Ajax

I want to update the WP Editor textarea after Ajax, but it does not work. I have the following in my Ajax success function: $('input#pn').val(response.name); $('select').val( response.category_name ...
0
votes
0answers
323 views

Convert textarea into TinyMCE

This code converts the textarea into the TinyMCE editor: $('.text_editor').each(function(){ var textfield_id = $(this).attr("id"); window.tinyMCE.init({ mode : "none", ...
0
votes
1answer
127 views

Problem with wp_editor

I tried to add wp_editor in this function but no success. Can someone help me to add wp_editor in the 'story' field.. function guestposts_shortcode( $atts ) { extract ( shortcode_atts (array( ...
0
votes
2answers
255 views

How to disable wp content editor while using qtranslate for custom post types in wp-admin

Is it possible to remove the editor completely for some CPTs? If you remove the editor support for the CPT, qtranslate does not init for the title field. So, if you want to use it, you should get ...
0
votes
1answer
77 views

wp-editor is empty on first submit

I'm using wp-editor in a simple plugin, but I'm having an issue where the first time I hit the submit button the content from it is blank in the database. <?php $editor_id = 'mycontent'; ...
0
votes
0answers
15 views

Passing settings to multiple WYSIWYG editors [duplicate]

I am trying to create multiple wysiwyg editors on the same page using a loop. I am trying to pass settings to each editor to change their look of them. I'm not sure what I am doing wrong. I am ...
0
votes
0answers
89 views

wp-editor-area textarea disapear on cancel-comment-reply-link click

I am using this tutorial to implent the wp_editor in comments. everything went fine except when i click on cancel-comment-reply-link. the form move on to its initial position on the bottom of ...
0
votes
0answers
64 views

wp_editor is not working in admin_ajax.php

I am currently creating a plugin that have facility to drag and drop textarea and its content. With that i create shortcode for displaying textarea content in popup. I created one custom post type ...
0
votes
1answer
160 views

textarea_name is not working with wp_editor

I used to use a normal textarea and tried to change wp_editor on front-end. <div class="small-12 large-12 columns"><textarea name="post_content" rows="10" cols="20" placeholder="Briefly ...
0
votes
0answers
145 views

Add insert/edit link functionality to front end tinymce

I would like to know how to insert/edit link functionality at front end tinymce added by plugin. Before that I thought I can use WordPress's tinymce by wp_editor() but, wp_editor is not working on ...
0
votes
0answers
87 views

Cannot Save Data to the wp_options table using the wp_editor

The following code I have written is not saving the data to the wp_options table: function create_company_paragraph_1(){ ?> <p>Write the text you want to be displayed in the first ...
0
votes
1answer
137 views

Adding New Row of Custom TinyMCE

I have added some custom tinymce to the WP editor using the following code: PHP add_action( 'init', 'my_theme_buttons' ); function my_theme_buttons() { add_filter("mce_external_plugins", ...
0
votes
0answers
281 views

How to save wp-editor content in options DB for plugin option?

I use options table to save my plugin options and show the saved data in the input field using get_option() from the options. For example register_setting('myplugin','example'); <input ...
0
votes
0answers
60 views

load wp_editor without wp_footer

Im trying to laod wp_editor in a popup and I don't want to use wp_footer and fill it with lot of unnecessary js, css and html loaded by other plugins. At the moment when i need wp_editor I have: ...
0
votes
0answers
101 views

Link directly to media file through 'add link'

I'm trying to achieve exactly what the title says. I'm building a site for a client, and am trying to make the site as user friendly as possible. They aren't very IT literate, and already are ...
0
votes
2answers
858 views

wp_editor doesn't work in front end area

I am developing a theme where I would like to have a front-end area, but when I try to include the wp_editor() in the page template I am getting this result: P.S. The wordpress editor works fine ...
0
votes
0answers
141 views

When using TinyMCE which function should i use to sanitize the data?

I am developing a theme with several custom post types and each custom post type has its own settings page added with [add_submenu_page(...)][1]. One of these submenu pages includes a tinyMCE rich ...
0
votes
1answer
66 views

How to add a nested shortcode into editor?

I want to create an accordion shortcode for wordpress and the html code should be like this: <ul class="acordian"> <li> <h2>sadegh</h2> <p>To delete a comment, just ...
0
votes
1answer
371 views

WP_Editor Shortcode Issue

I have created a front-end editor using wp_editor that functions as it should. Upon testing I have noticed that it is stripping out any shortcodes that have been inserted in the content. I have ...
0
votes
0answers
78 views

WP_Editor - Setting render location on page

I'm trying to include wp_editor in a settings page. public function addEditor($content = '') { $editor_id = 'createposteditor'; $args = array( 'textarea_rows' => 15, ...
0
votes
1answer
214 views

How Can i print the wp_editor field content?

Normal editor content we can call as the_content(); here, i have 3 more wp_editor fields, how can i print the code in my page?. <?php wp_editor( $holds, 'holds', $settings = ...
0
votes
0answers
77 views

How can I open WP rich editor within colorbox in the front end?

I have a site on which I've created a form to add new posts. The form opens in colorbox and I want it to contain a rich editor. I've added this code: <?php $args = array('textarea_rows' => 15, ...
0
votes
2answers
403 views

TinyMCE Editor Set Default Tab

I removed the tabs from the WP editor using wp_editor('', 'some-id', array('quicktags' => false) ); But sometimes when the page loads the TinyMCE field loads with the Text tab selected: ...
0
votes
1answer
337 views

wp_editor on front end media upload jquery live error

I have set up a front end editor for a project I am working on. The editor is inside a div with display set to none. The user will click a button to get the editor div to show up. The issue I am ...
0
votes
0answers
135 views

How to change name of tinyMCE toolbar button?

I want to change the tinyMCE pop-up from "Blockquote" to "Indented Quote" Lots of posts about customizing tinyMCE but none explain to how change just the titles.
0
votes
1answer
136 views

Is it safe use wp_editor in public contact form

I'm going to make a contact form for my site, and i want to use WYSIWYG editor (wp_editor) in my form message field. Here is my question, is that safe use wp_editor in public though disable media ...
0
votes
1answer
1k views

How to remove buttons from tinyMCE in wp_editor added via AJAX

I've created a plugin with a custom post type that uses the standard editor. Also on the page, I've got a button that causes a jQuery dialog to pop up that also contains the tinyMCE editor created ...
0
votes
1answer
1k views

How to use wp_editor(); in functions.php then retrieve content in the template

I want to use wp_editor(); (custom editor) I've tried several methods but I am lost and I can't get it to save the post and retrieve the content in template How to edit posts with the new wp_editor ...
0
votes
1answer
2k views

Using multiple instances of wp_editor in Custom Post Type admin area

I've written a custom plugin for my fishkeeping website which allows users to enter information about a species of tropical fish (i.e. "habitat", "distribution", "locality", etc). Each of these are ...
0
votes
1answer
111 views

wp_editor() in content that was loaded with ajax

I try to use wp_editor() in content that was loaded with ajax, but none of the required files and some other configuration script not loaded : The structure of ajax is something like this: function ...
0
votes
1answer
91 views

Add frontend editor with media buttons for Visitors and display only their media

I'm trying to make a frontend blog post submit for registered users. I have this working without media, now trying to add media. The standard wp_editor $content = ''; $editor_id = 'mycustomeditor'; ...
0
votes
1answer
186 views

Disable html in custom post types

My webstie have custom post type created, and now I want to disable usage of any html tag in content editor, so only plain text is saved in database (and to remove content editor and html editor if ...
-1
votes
1answer
78 views

Disabled visual editor and Wordpress keeps adding line-breaks to my code

I've disabled visual editor, so this can't be an issue with switching between the two different editors as I've seen in many questions related to this same issue. I'm pasting code into the page like: ...
-1
votes
1answer
27 views

Why am I not able to save / update data in wp_editor?

After looking at various suggestions here and on StackOverflow, I still can't figure out why my solution is not working. I'm adding an extra wp_editorto my posts / pages, but the data is not saved / ...
-3
votes
1answer
223 views

do_shortcode does not work with slideshow shortcode

I am using the Slideshow plugin 2.2.7 by Stefan Boonstra and am adding the shortcode to a custom wp_editor() metabox. When I echo the slideshow plugin with: echo do_shortcode( $banner ); /* $banner ...