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

Embed and word Count not working for wp_editor instance

When using the wp_editor() function to have an editor, I do not see the standard word count and am unable to embed files. In the default post editor, word count is shown, and youtube urls are ...
0
votes
0answers
19 views

add wp_editor to custom_meta_box

Can please anyone help? I created custom meta boxes, two of them are in textarea. This is what i have: array( 'label'=> 'Ingredients', 'desc' => 'List of ingrediends', ...
1
vote
0answers
19 views

Change syntax styling of TinyMCE HTML Text Editor

So I have customized the CSS display for the TinyMCE 'Visual Editor' by using this here: /* Add Theme CSS to WP Content Editor -------------------------------------------------- */ function ...
0
votes
0answers
17 views

Backslashes being stripped from CSS

The title explains my problem. Upon saving CSS stylesheet in the "Appearance > Editor", single backslashes are being stripped out of the stylesheet. For example: content="\foo" becomes: ...
0
votes
1answer
36 views

Show Default Editor on Blog Page ( Administration Panel )

In WordPress 4.2 it included a nice feature which labeled what page was the Front-Page and which page was the Blog ( Latest Posts ). Unfortunately, it also removes the default editor on the page ...
1
vote
0answers
31 views

How to prevent shortcode preview from breaking in tinymce editor?

I am creating visual preview for shortcodes (just like captions). I have don't most of the parts but my preview html is getting broke by the editor when post is saved. I have investigate it further ...
0
votes
1answer
45 views

How to get WP editors tinyMCE instances

My main goal is to get editor content when it changes and update a live preview. For this I need to add an event listener to the editor. BTW, I have two editor in the same page and the page is loaded ...
3
votes
1answer
76 views

WP_Editor - Remove TinyMCE Toolbars

I've created a TinyMCE Editor in a Metabox and I'm trying to remove the toolbars. According to The Codex I should be able to pass it an array of options to override the default TinyMCE. Here's what I ...
0
votes
0answers
27 views

wp_editor doesn't work in taxonomy add page

I have added a custom field in taxonomy create page. $settings = array('wpautop' => true, 'media_buttons' => false, 'quicktags' => true, 'textarea_rows' => '15', 'textarea_name' => ...
0
votes
0answers
24 views

Can't insert links or edit image attributes with visual editor

I am trying to make popup edit screens where I have text input and a wp_editor. My only problem in the editor is that I cant insert links with the visual editor or edit image attributes with the ...
5
votes
1answer
73 views

Show Font Awesome Icons In WP Post Editor

I have added the Font Awesome script and it is being loaded in the source code also. But the icons are not being displayed in the post editor. Any possible solution?
0
votes
1answer
39 views

How to make shortcode which returns HTML?

I need to make a shortcode button to TinyMCE editor which, in the moment i click it fills up the content part with HTML. When i click on button i need something like: <div> ... </div> ...
0
votes
0answers
74 views

How to get a full functional wp_editor and colorpicker in tinyMCE popup

I'm trying to make a custom shortcode generator. I call a php document through AJAX in a tinyMCE popup. There, I'm trying to have a wp_editor instance. Also color picker. I'm not getting everything ...
2
votes
1answer
64 views

Visual Editor - Colorize Shortcodes

I want to highlight shortcodes in the WordPress visual editor in a specific color. E.g. I Have the following Shortcodes [shortcode1] Some text [/shortcode1] ... [shortcode2] Some text ...
0
votes
0answers
82 views

Add css / js to the tinymce dialog box iframe

In wordpress tinymce, when you click certain icons, a dialog box appears. E.g. click the text color icon, then click 'more colors' and a dialog box appears showing a color picker. The dialogue box ...
0
votes
2answers
84 views

&nbsp when I use ENTER for skipping line

I don't know why when I'm using "Enter", that add &nbsp; in Pages/Posts Editor. That doesn't matter, but on my website, when I look the code &nbsp; makes this code : <p> � </p> ...
0
votes
1answer
359 views

Add a wp editor to custom plugin and save data

I'm creating a custom plugin. One of the fields in the plugin let's the user add data. If I add a textarea the user has no control over the text. So I would like to add a editor. I know WordPress ...
0
votes
0answers
68 views

Theme option not saved if in wp_editor() and html decoded

i'm trying to add wp_editor() to my theme-option page but it is not saved when html is decoded. so this is the issue: in the theme option page i successfully added a new option called ...
0
votes
0answers
28 views

wp_editor Too Tall when Content is Loaded

I am using the code below to load a custom editor for my application: <?php wp_editor(stripslashes($post->post_content),"project_description",array('quicktags'=>false, ...
0
votes
1answer
30 views

How to make this clean?

I test on localhost $MySITE = 'http://www.ciusan.com'; wp_editor($MySITE, 'CNB_Content', $settings = array('media_buttons' => false,) ); but on output always: ...
0
votes
0answers
79 views

wp_editor() Function Displaying Text area Within Itself

I'm having a few problems with the "wp_editor" function within WordPress. For some reason, when I use this code for a meta box (adding a second content field): add_action( 'add_meta_boxes', 'box' ); ...
0
votes
0answers
62 views

None of the JavaScript works when using wp_editor

I'm trying to create a front-end editor for my Wordpress theme using wp_editor. While it outputs the editor, there's loads missing from it. There's no title, no submit button and none of the JS ...
0
votes
0answers
38 views

Wp-editor box within options page

I'm trying to put together a quick plugin where I have a Options menu with a wp-editor box, and than content gets output via a shortcode. So far I've added a menu, created an option page, and setup a ...
0
votes
1answer
62 views

Injecting pre-defined text from custom page template to editor

I am creating a custom page template: < ?php /* * Template Name: sliding content * Description: Sliding category contents */ get_header(); ?> <div id="primary" class="content-area"> ...
0
votes
0answers
125 views

How to force TinyMCE to update

I'm using the wp_editor function to display TinyMCE on the front end of my site. I have an AJAX script hooked up to the submit button on my form that shoots off to admin-ajax.php (as in WordPress ajax ...
0
votes
0answers
110 views

Add Upload button in Tinymce Editor popup?

I am creating a tinymce popup where I need to have an option to upload file. I searched for a while but could not find any solution for this. Is there anyone who can help me to grab it ? Please ...
0
votes
0answers
604 views

Add Media Upload Capabilities Needed for Custom Role for non-Posts

I finally managed to update an old WP 3.3.1 site to WP 4.1 with few issues, but one unexpected change seems to have come about with relation to file uploads. In the WP 3.3.1 version of the plugin, I ...
0
votes
0answers
81 views

Can't save wp_editor()

I'm creating a theme option page for my WP theme and i try to put an editor in the back office, so i call wp_editor(): function register_and_build_fields() { register_setting('theme_options', ...
0
votes
1answer
20 views

Add default page editor to an admin settings page

Is there a way to get the standard page editor into a custom administration settings page? I have been able to add other textarea boxes with toolbars, like TinyMCE/CKEditor but not replicate the exact ...
0
votes
0answers
116 views

echo wp_editor to screen with formatting

I've created a custom field containing a content editor (including formatting toolbar) I can save any inputs such as text, font colour etc with no worries. I am however struggling to out put the ...
1
vote
1answer
589 views

Remove quicktag buttons but not Visual / Text editor and tabs

I wish to remove the quick-tag buttons in the text (html) editor in TinyMCE but not the html editor itself nor the tabs for choosing between the editors. When I use $settings = array('quicktags' ...
0
votes
1answer
42 views

how to enable tinymce custom buttons in meta box?

I have a default setup for including external plugin for tinymce, that is working on default editor. But not when tinymce used in metabox. I there a way to force them to load there too?
0
votes
1answer
45 views

wp editor formatting

I am writing a plugin and have this code: $settings = array("media_buttons" => false, "wpautop" => false, "teeny" => true); wp_editor("", "viddesc", $settings); The problem is when I paste ...
0
votes
2answers
976 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
535 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
0answers
257 views

wp_editor saving to database, but not displaying content on refresh

I'm looking to add a wp_editor() input to my WordPress plugin settings page. I've followed the codex instructions and have run across a problem. When I comment out the wp_editor line below, the ...
0
votes
1answer
230 views

WP_Editor - Saving Value into Plugin Option - Stripping HTML

I have a wp_editor(); on my plugin settings page. I also have enabled the "Font Size" drop down in TinyMCE. After highlighting text in the wp_editor(); and selecting a font size from the editor's ...
0
votes
0answers
19 views

Configure the post/page text editor?

When I am writing in the text editor, I have no problem ofcourse to divide the text in the text editor itself into divs and give classes and separate between pharagraphs and so on. The problem is, ...
0
votes
0answers
64 views

Create gallery in custom field

I was in prepare for a follow task: in custom post type user must enter Title, Description, Price and Gallery. I was add custom field for price, and as for gallery - i plan to use wp_editor function. ...
0
votes
1answer
105 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
189 views

WP_Editor not saving data in user_meta

I have a front-end plugin which allows users to modify the fields (user_meta) of their profile, and everything works except the wp_editor. <div class=""> <label ...
1
vote
0answers
248 views

tinymce.get() returns error after ajax request

In the backend, after an event I make an ajax request which populates certain fields. The problematic field is the textarea, for which I use wp_editor like so: <?php $settings = array( ...
0
votes
1answer
236 views

Multiple wp_editor instances in custom post type using Ajax

In a custom metabox, I need to generate a tinny wysiwyg wp_editor everytime we click on a button.. I struggled a lot with this and couldn't achieve it. The js $.ajax({ url: ajaxurl, data: ...
0
votes
1answer
47 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
110 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 ...
1
vote
2answers
1k 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
63 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
1answer
119 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
0answers
61 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
95 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 ...