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
253 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
86 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
57 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
95 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
790 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
125 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
238 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
139 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
89 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
86 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
503 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
1k 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
65 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
222 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
1k 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
364 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
154 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
44 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
77 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
441 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'] ? ...
6
votes
1answer
630 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 ...
0
votes
1answer
207 views

help on wp_editor via ajax load [duplicate]

So I have been spending hours trying to figure out how to make the wp_editor() work on an ajax generated content. I bumped into this post: Load tinyMCE / wp_editor() via AJAX and tried the solution ...
0
votes
1answer
40 views

How Wordpress remembers which active editing modes are used?

I noticed that when I save page in Visual editor. Wordpress remembers it the next time I edit the page even if I clear all my browser cookies and cache. In what section of the WordPress database does ...
0
votes
1answer
200 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
75 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
1answer
963 views

wp_editor not saving data, and text area showing html tags

This is my custom meta box, here text area showing html tags.i used tinymc textaea editor. and i try to use wp_editor also. but data not saving.if it saved, i don't know how to call it. please help me ...
0
votes
1answer
259 views

Better solution for managing media attachments with `wp_editor()`?

Currently using wp_editor(); on the front-end of my website as a content submission form. All posts submitted are set as a "Pending", which will later be published or deleted by an administrator. The ...
0
votes
1answer
555 views

Custom wp_editor doesn't update post_content

I'm working on a client's site, creating a staff profile plugin. The issue is that they previously created the profiles as regular posts. I converted all of the staff posts into a custom post types. ...
0
votes
2answers
388 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
253 views

How to add set featured image button in wp_editor()?

I am working in a plugin and in that plugin adding wordpress default editor(wp_editor)and adding functionality to save post with add media features. Add media features is working absolutely fine and ...
0
votes
2answers
197 views

Modifying the main editor priority

I want the main WordPress post editor to appear below some of my meta boxes (generated by Advanced Custom Fields). I know there are the add_meta_box() and remove_meta_box() functions, however it'd be ...
1
vote
1answer
150 views

How to use MarkDown in a custom textarea field?

I've created a custom metabox with a textarea in it. How would I go about using Markdown in this textarea? I've seen some WP plugins but they seem to only be for the main editor.
1
vote
1answer
414 views

jQuery Validate wp_editor

I have a form, and in the form, I use <?php wp_editor('', 'user_submitted_progress', $settings = array('textarea_name' => 'user_submitted_progress')); ?> to generate a TinyMCE, rather than ...
0
votes
1answer
633 views

Convert textarea with wp_editor

I have a custom tabbed menu which has some input fields that works properly. I followed this tutorial: ...
0
votes
1answer
311 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
130 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
462 views

WP_editor problem

A few days ago I asked this question. Today I started building a new website in which I copied the code of my plugin used at the website from my previous question. And I was surprised when I saw ...
1
vote
1answer
156 views

Change the name of the wp_editor tab “html/text”

I'm using the German version of WordPress and in wp_editor the two tabs for "visual" and "html" are named "visuell" and "text". I would like to change the "text" tab to "html". Do you know how I can ...
1
vote
2answers
297 views

Custom editor field displaying HTML in Visual editor

I am trying to add a custom WordPress editor field to the General Settings page in the admin. I have it working except that when you save anything with HTML it converts all the code to HTML entities ...
0
votes
1answer
1k views

wp_editor in text mode only(without TinyMCE)

Is there a way to call wp_editor for a meta box using just the text/HTML mode without TinyMCE. I think the deprecated function pre-3.3 did this but I'm not sure how its done now.
0
votes
1answer
133 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 ...
-3
votes
1answer
221 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 ...
2
votes
1answer
774 views

TinyMCE strips line breaks on mceAddControl

I'm using wp_editor to add wysiwyg fields to admin edit screens. Each wysiwyg lives within a draggable meta box. Since TinyMCE has issues with dragging, I'm using the following code: // on the ...
2
votes
2answers
470 views

add_editor_style is not loading in frontend. Any solution?

This is default wordpress add_editor_style function: function add_editor_style( $stylesheet = 'editor-style.css' ) { add_theme_support( 'editor-style' ); if ( ! is_admin() ) return; ...
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 ...
1
vote
3answers
977 views

Why Can't wp_editor Be Used in a Custom Widget?

I've been working on developing a plugin that adds a widget that allows you to edit the content with a wysiwyg editor. I want to use the default wordpress editor by calling wp_editor(). I've seen ...
3
votes
2answers
201 views

Load visual editor without custom styling

I have a plugin that uses the wp_editor() function to load an instance of the TinyMCE editor. However, the editor is affected by custom styling to make it look similar to the theme through the ...
0
votes
3answers
2k views

Replacing textarea with wp_editor

I have a working front end posting system on my site that initially I designed with a simple text area for the content. I am now attempting to swap the textarea out with the TinyMCE function, ...
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
79 views

i am making text changes on my page show in preview not on live site, why? [closed]

I go into the admin back room on my site make text changes and hit preview changes and they show up, but when i go to the live site, they don't show at all. What am i missing, what should i be doing? ...