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
20 views

TinyMCE editor - new lines not rendered on front end

I've been working with a plugin making various tweaks and adding additional functionality. It uses custom post type to create a page with an associated download. In the admin area which allows you to ...
0
votes
1answer
17 views

How avoid WP editor to change <br/> by &nbsp;

Ok this is an old question and i may receive classical answers : use soft key I can't, i also use JIG and it makes the soft key invalid when i use it to make the text slightly downard to feet with ...
0
votes
2answers
27 views

Wp_editor bug with foreach()?

In the user profile I provide some wp_editor() for user can insert some extra information the the problem happen foreach ($condition as $b) { $check = $b.$lang; ...
0
votes
1answer
38 views

TinyMCE Anchor Button not showing

I'm using this filter and function to display a custom, stripped-down version of the TinyMCE editor. Everything works as it should...except the 'Anchor' button will not show ('anchor')? According to ...
1
vote
1answer
28 views

“wp_editor” not displaying TinyMCE correctly when square brackets used in name

I'm creating a custom options page and I have a textarea that I've turned into a TinyMCE editor using wp_editor. TinyMCE displays correctly, however it breaks when I include square brackets in the ...
0
votes
0answers
16 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 ...
1
vote
2answers
19 views

Adding an image to a non existing post

I am building a frontend posting mechanism. Everything is working fine besides the image uploader. I am using Wordpress Wysiwyg editor using <?php wp_editor ?>. When I click on the Add media ...
0
votes
0answers
38 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 ...
1
vote
1answer
62 views

More than one TinyMCE (wp_editor) with different $settings['drag_drop_upload'] values breaks

It appears that when I have two+ separate wp_editors with different values for drag_drop_upload they all are built as if they have drag_drop_upload set to true. If I set them all to false they act ...
1
vote
2answers
49 views

Adding custom styles to elements, without creating new elements

So Im using the tiny_mce_before_init filter to added a few classes to the wp_editor and am getting unexpected results. I havent used this before, but from what Im reading and what my peers tell me I ...
0
votes
0answers
73 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
28 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) ...
3
votes
1answer
103 views

Disable TinyMCE Drag and Drop

I would very much like to disable the drag and drop upload feature for tinyMCE (both the default one and the wp_editor() one) because it interacts with my custom pop up menus - (WP Trac). Right now ...
0
votes
2answers
118 views

How to remove the statusbar from the default wordpress editor?

How to remove the letter P from the default wordpress editor? Previously i have removed that P but now the entire code changed from the class-wp-editor.php file.
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
75 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
47 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 ...
1
vote
1answer
165 views

TinyMCE style_select - Append Classes

TL;DR Question How do I create a submenu for my classes with style_format? Can I append a submenu to the existing menu? With the new Styleselect in TinyMCE 4.0 there's a bunch of predefined ...
0
votes
0answers
97 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
73 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
141 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
1answer
372 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
169 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
48 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
26 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
222 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
50 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
48 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
274 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
113 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
29 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 ...
2
votes
2answers
2k 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
110 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
41 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
211 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
66 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
84 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
66 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
106 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
59 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
145 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
128 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 ...
1
vote
1answer
313 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
81 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
167 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
101 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
81 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
27 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?