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

1
vote
2answers
23 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 ...
1
vote
1answer
93 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
62 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 ...
1
vote
0answers
96 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
307 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 ...
1
vote
0answers
31 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'; ...
1
vote
0answers
28 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?
1
vote
2answers
1k 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
143 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 ...
1
vote
1answer
155 views

wp_editor not modify html tags of initial content

How can i set the tinyMCE editor in wp_editor to not modify/replace the html tags of the initial content ? I'm loading html content with tags (i know that they are deprecated but i need them) and ...
0
votes
4answers
3k views

How to add editor-style.css styling to wp_editor on front end for comments

How can I apply my own css (to match editor-style.css) to wp_editor being used on the front end for comments? Currently I'm using code from here to enable the visual editor for comments. My actual ...
0
votes
2answers
227 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 ...
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
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
25 views

Disable HTML (Text) Tab in Post Editor

I am attempting to disable the Text tab in the post editor but not having any luck. The first thing I want to do is set the Visual editor to be the default but this code does not work (it is being ...
0
votes
1answer
50 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
1answer
92 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 ...
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
899 views

Migrating from metaboxes to wp_editor()

I got a client requirement where the editing facilities available in wordpress had to be available for content that was meant to be displayed on the sidebar of a particular post/page. The content to ...
0
votes
1answer
1k views

WP_editor doesnt apply wpautop on single line content

For a current project I am trying to echo a line of text saved in the theme's options page. I use the wp_editor function for the user input instead of a textarea. The code I am using is quite simple: ...
0
votes
2answers
79 views

allowing all HTML tags in tinymce editor

I have a plugin where I am creating a shortcode that creates a form with a textarea field. I would like the user to be able to insert a complete HTML page into the editor - including the HTML and BODY ...
0
votes
1answer
42 views

How to enable visual editor when editing comments on the dashboard?

For editing a comment in admin pages the editor is only html, can we modify the edit comment page with a filter to include visual editor too?
0
votes
1answer
34 views

Output richtext metabox value

I have rich text metabox.When I echo the out put it shows html tags.If I write <h1>Hi</h1> in editor metabox it ouput the same.My works so far <?php $valueeee2= ...
0
votes
1answer
42 views

Set Link Target Checkbox chcked on Edit Image MOdal Window in Admin Post Edit Screen?

Inside of newer versions of WordPress in the Visual Editor when you add a photo, you can then click on it which reveals an Edit, Delete, and Resize buttons. Now if you click on the Edit button ...
0
votes
1answer
138 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
2answers
317 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
2answers
67 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 ...
0
votes
1answer
103 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 ...
0
votes
1answer
95 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
2answers
301 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
1answer
260 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
3answers
2k 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
192 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
1answer
570 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
1answer
229 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
1k 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
294 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
666 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
1answer
300 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
1answer
719 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
509 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 ...
0
votes
1answer
2k 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
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
88 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? ...
0
votes
2answers
458 views

Dynamic WordPress editor in meta box

I created the WordPress editor using wp_editor function dynamically. While i click add more button i just cloned editor and append new editor using jquery. While i am cloning editor i just changing id ...
0
votes
1answer
3k views

wordpress qtranslate editor text is not working [closed]

I have installed qtranslate on my wordpress site, it all works fine, but sometimes the content editor does not show the text, When I force refresh the page a few times (Ctrl + r) eventually the text ...
0
votes
1answer
707 views

Add custom fields to a page template, admin side

I'm adding a page template to the theme I'm currently using. Is there any way to make the admin editor to show some input text fields or other options for the template? For example, I'd need two ...
0
votes
2answers
178 views

How can I edit pages from my local environment?

Is there any to edit and/or create wordpress pages from my local environment? Or shall I use the wordpress editor no matter what?
0
votes
1answer
1k views

wp_editor on custom meta textarea field - images and html fails

So I have made some custom textareas on my frontpage template. This works fine and I can safe content and so on... But I am experiencing some issues. When I click "Upload/Insert" I can work with the ...
0
votes
1answer
757 views

WP Editor, save content and category on frontend

I'm creating a plugin that shows a frontend editor that will be the content of the current post. But I don't know who to save the content from the wp_editor to the post content; I tried using on form ...