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
358 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
1answer
21 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
15 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
0answers
27 views

Wordpress 4 and wp_editor() Not Showing Visual/Text tabs

I use wordpress a lot, i develop for it a lot too! I have a client website that i have added 10 custom meta boxes to the post edit screen in functions.php . All the meta boxes have an editor using ...
0
votes
0answers
14 views

Custom wp_editor content format missing

I am using this code to render wordpress editor like page body editor. $content = ''; $editor_id = 'mymail_html_template'; wp_editor( $content, $editor_id, $settings = ...
0
votes
2answers
929 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
1answer
379 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
21 views

how to use wp_editor() here am getting empty result

<p> Messenger: <br /><?php wp_editor( '', 'mailling_messenger1', $settings = array('mailling_messenger1' => post_content) ); ?> <p> here am using wp_editor to get mail ...
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
0answers
10 views

wp_editer in category field save error?

i'm add more field in category by code in functions: <?php add_action ( 'edit_category_form_fields', 'extra_category_fields'); //add extra fields to category edit form callback function function ...
0
votes
1answer
20 views

Save values from foreach loop in wp_editor

I have created a custom metabox that contains a wp_editor. The wp_editor shows content of a uploaded .csv file and constructs a table. I want to allow the users to edit the table after uploading the ...
0
votes
2answers
177 views

wp_editor() in content that was loaded with ajax [duplicate]

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
0answers
44 views

WP_EDITOR on Frontend in bootstrap modal doesnt work properly

im stacked on one problem. in my plugin, i open a bootstrap modal and inside it i want to display the defaul WP editor, called by the function wp_editor(). What i get is the textarea with buttons and ...
0
votes
0answers
31 views

tinyMCE.activeEditor = null WP editor loaded in 'Text' mode?

I have a plugin which saves data via AJAX, and realised that it wasn't sending out any request. I opened up the console to look further, and low and behold when trying to look at the object ...
-1
votes
1answer
41 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 / ...
0
votes
0answers
20 views

How to add a field to live preview in post editor?

WordPress 4.0 allows live previewing of certain shortcodes while editing a post. How can I customise the options that appear when I edit my embedded video? I want to add a custom field below the ...
0
votes
1answer
19 views

ThinkTanking for design [closed]

I have a question that doesn't need scripting solutions perse. I would like to have some idea's and people who think along with me. WordPress: I have a script that let's a user upload a .csv file and ...
0
votes
0answers
39 views

How to add the wp-media-library button in tinymce?

That is a screenshot from the admin backend for the the tinymce editor in fullscreen view. I am implementing the editor in the frontend and I want to add the wp media library button in the default ...
0
votes
0answers
83 views

Inline Editing with wp_editor and tinymce (problem with textarea)

I want to use the new inline editing from tinymce with the wp_editor function in wordpress. Here is some info on how to set up tinymce inline editing http://www.tinymce.com/tryit/inline.php The code ...
2
votes
2answers
224 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 ...
0
votes
1answer
74 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
39 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
70 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 ...
5
votes
2answers
5k views

How to get the input of a TinyMCE editor when using on the front-end?

I'm not sure why I haven't been able to find this, but does anyone know how to get the input of the TinyMCE editor? I am using it in the front end and want to be able to save whatever the user has ...
1
vote
1answer
60 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
34 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
1answer
282 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 ...
3
votes
1answer
212 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 ...
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 ...
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
0answers
90 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
77 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 ...
0
votes
1answer
175 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: ...
1
vote
2answers
55 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
1answer
41 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
21 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
2answers
206 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.
3
votes
4answers
3k views

How to handle multiple instance of “send_to_editor” js function

Here is what I am doing: I Added wordpress media upload with iframe popup when a button or link clicked. And with click of insert into post the image url placed on a textbox. send_to_editor() ...
0
votes
0answers
11 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
123 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
73 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
234 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
1answer
488 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
0answers
158 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
102 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'; ...
1
vote
1answer
606 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
306 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
59 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
178 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' ); ...
1
vote
0answers
28 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'; ...