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
1answer
31 views

TinyMCE 4.x : How to customize toolbar on wp_editor()

Since upgrading to Wordpress 3.9 (which includes TinyMCE 4.x), I have problems customizing the editor, displayed via wp_editor() In the example below, I want to disable the 'fullscreen' button, but ...
0
votes
0answers
10 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
2answers
22 views

Pull Youtube Link from 2nd WP_Editor

I have 2 WP_Editors, 1 is the main editor I use for content and the 2nd is an editor I use for the user to insert videos and any extra content describing the video. My question is, is there an easy ...
1
vote
0answers
10 views

How do I prevent the wp_editor from loading outside container?

I'm trying to load the wp_editor on a settings page: <?php //$content = $value->playerBio; $editor_id = 'listingIntro'; ...
0
votes
1answer
22 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
28 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
30 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
57 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", ...
2
votes
0answers
39 views

wp_editor on input changes content

I have a text area using wp_editor On first input it works great. Save via text or visual it saves to mysql just fine this is what is in the text area before I save <a ...
3
votes
0answers
24 views

How to reinit tinymce for wp_editor after ajax? [duplicate]

Basically if I call wp_editor via ajax it acts funny, I noticed it does not include 2 scripts it DOES include if i call it normally within a form (NOT thru ajax). I found some anwers like tinemce ...
1
vote
2answers
322 views

How to use the new Dashicons for custom TinyMCE buttons?

I've been following a tutorial on Tuts+ (linked from the WordPress Codex) on how to interact with the TinyMCE editor to add buttons. Following the example code on that article, I have a JS file which ...
0
votes
1answer
60 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
1answer
26 views

What is this format called (nested shortcodes)?

When using plugins and commercial themes in WordPress, it's not uncommon to meet code like this: [one_half] [service_box] <h1>Title:</h1> <ul> ...
0
votes
2answers
61 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
29 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
14 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
46 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 ...
-1
votes
1answer
33 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: ...
0
votes
1answer
64 views

Add unique class or ID information to tinyMCE

Is there a method to apply a unique body class ID to the editor in the same way that body class information is added to the published page? I am using the add_editor_style() function to render the ...
0
votes
0answers
47 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
91 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
82 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
1answer
124 views

Save wp_editor() content as option

I'm having some troubles with a extra feature i'm writing for my theme. The admin should be able to make some special posts, those posts are stored as an option. The options are atored as an array ...
0
votes
0answers
56 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
82 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 ...
0
votes
1answer
66 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
1answer
55 views

Wp_editor doesn't send the required data

The wp_editor function is working fine concerning the displaying of editor and sending of information, except that the information is never sent as it is. In a template file responsible of updating ...
1
vote
0answers
25 views

How would I load wp_editor someehere else other than the admin area?

I would like to use the wp_editor in my article page for live blogging, but the tiny mce does not show up. Can someone guide me through this?
0
votes
0answers
155 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
1answer
68 views

How to make the Wordpress Editor not accept HTML?

So basically, I am using the Wordpress editor on my site and I do not want my users posting ANY HTML in it at all since it can cause some problems. My Wordpress Editor is currently like this: ...
0
votes
0answers
45 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
64 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
1answer
469 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 ...
1
vote
0answers
109 views

wp_editor loses data, perhaps an html_entity_decode problem?

I have a custom meta box that I created with WP Alchemy. It has two wp_editor fields. These fields are behaving very strangely. If I just type simple text into them, they work just fine. But if I ...
0
votes
2answers
145 views

wp_editor removes HTML and inline styles

I use the wp_editor function to display an editor in front-end. The problem is that this editor doesnt behave like the editor in backend based on the settings I give as input: $settings = array( ...
0
votes
0answers
118 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 ...
2
votes
1answer
84 views

all tincymce's switch when updating page after changing from html to text in custom metabox

I have a custom metabox which uses wp_editor and when i switch to text editor instead of visual the main content tinymce also changes to text view when i update. I was wondering am i doing something ...
0
votes
1answer
78 views

Wordpress code editor messed up my code!

I just spend a few hours trying to make my code look better. In the past, I did some changes using Wordpress code editor and after downloading these files yesterday, I noticed that code is totally ...
1
vote
2answers
285 views

Remove specific buttons from wp_editor()

I know there are similar topics with accepted answers but I can't find what I'm looking for. I want to keep only basic buttons in wp_editor(). I'm using this in an option page to make writing more ...
0
votes
1answer
639 views

Add multiple Visual Editors for Custom Post Type

I'm designing a site that will be part of a WP-Network; we have been told we cannot install plugins. I have a custom post type, which I have added in functions.php of the child-theme I am writing. In ...
0
votes
1answer
49 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
184 views

`wp_editor()` CSS messing up the jQuery Dialog

I have a custom admin page that includes both the user of wp_editor() and a jQuery dialog. For reasons unknown to me, the instance of wp_editor() uses some of the same css class names as dialog, and ...
0
votes
2answers
816 views

How to set WYSIWYG editor width within wp_editor() function?

This is my current code: $initial_data = $this->options['my_plugin_editor']; $settings = array( 'quicktags' => array('buttons' => 'em,strong,link',), 'quicktags' => true, ...
0
votes
1answer
335 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
1answer
98 views

jQuery does not work on WordPress editor

I've added some content to WP's editor, however the new content does not respond to the click behaviour. Here's how I've added the content: add_filter( 'default_content', 'custom_editor_content' ); ...
0
votes
0answers
33 views

Default RTE editor in popup dialogs through templating system?

Setup: The content type add/edit page (content type == post, page or other custom type). A Handlebars template wich is PHP include()ed in the content type add/edit page, which contains a call to ...
0
votes
0answers
58 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
281 views

wp_editor removes paragraph from custom meta box

I have created a custom meta box like so: /*quote meta box*/ add_action('add_meta_boxes', 'quote_meta_box'); function quote_meta_box($post) { global $post; $post_id = $_GET['post'] ? ...
0
votes
0answers
105 views

WordPress editor Working fine in text mode but not in visual mode.Why is this happening?

i used wp_editor function to implement editor in a plugin. it is implemented but when i type some text(in visual mode) and hit save. it is not saving the value in options.php. but if i edit (in text ...
5
votes
1answer
312 views

How to load wp_editor via AJAX

Does anyone know how o load wp_editor via AJAX in WordPress? My markup and editor is getting loaded properly but editor controls are not getting loaded properly, it may be because Javascript is not ...