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

Showing Categories for Page Edit - without plugin

I am building a theme without any extra plugins. Does anyone know the code needed to show the Categories in page Edit - without using a plugin?
0
votes
0answers
27 views

Visual/Text tabs in wp editor Not Showing

I have a wordpress website that i have added custom meta boxes to the post. Custom meta boxes have an editor using wp_editor(), but the editor is refusing to show the visual/text tabs on the editor ...
0
votes
0answers
15 views

Hook to the wp_editor? e.g. read content on each change of the wp_editor

i want to call a javascript function that logs the content of the tinymce? editor of wordpress that gets inserted like this wp_editor($someContent, "someId", $wp_editor_settings); the problem is ...
0
votes
1answer
13 views

Save editor's value in user meta and retrieve it

I am making user meta fields. I have to implement a field named business_profile and implement editor on it. I have implemented the editor but I can't seem to either save its value or retrieve it. ...
1
vote
0answers
53 views

Like to convert textarea into using wp_editor

In the first code below I would like to use wp_editor in lieu of the textarea. The second code snippet shows what I'm trying to use in the first code while keeping all the arguments etc in the first ...
1
vote
0answers
11 views

wp_editor: How to load wp_editor on demand using jQuery? [duplicate]

I am trying to load wp_editor on demand using jquery/javascript. Somehow I got success using following code but it does not save changed data in the element. tinyMCE.execCommand('mceAddEditor', ...
2
votes
2answers
54 views

Theme options WP Editor

My text editor in Theme Options doesn't have font color option. How can I add that? I've searched around the web, but no luck. On regular pages and posts I can see the font color option. I'm using ...
0
votes
1answer
45 views

how to get wp_editor to save data in plugin admin page

I'm trying to use plugin settings api to add wp_editor, but the text is not saving. // add the admin settings and such add_action('admin_init', 'my_plugin_admin_init'); function ...
0
votes
0answers
20 views

Editor Style when using diferent Page Templates

I created two templates on my WP theme, one with full-width and other with a sidebar. Like this: template-fullwidth.php <main id="content" class="main <?php echo storms_classes_page_full(); ...
0
votes
1answer
42 views

WordPress Editor not getting youtube video preview

When I am creating a post from the admin panel and using a youtube link in the Editor, the editor automatically fetching the video from youtube and displaying right away in the editor. But When i ...
0
votes
1answer
49 views

wp_editor in front end not working

This has been asked earlier here, but the answers did not help me. I followed the WP Codex but I still don't see the TinyMCE icons. While I don't care for the icons, I would like the users to have the ...
0
votes
0answers
28 views

How to add 'Site Identity' capabilities to customisation for editors

I was able to give most capabilities to editors for the Customisation. However I'm lacking the Site Identity capability. I found this thread How to change in customizer the "site ...
0
votes
1answer
47 views

How to add HTML5 required on wp_editor

I want to add HTML5 required for the client side validation on textarea generated by <?php $content = ''; $editor_id = 'YOURID'; wp_editor( $content, $editor_id ); ?> What is the ...
0
votes
1answer
31 views

is there any hooks or action to fire function of insert into post in media library?

I am seeking for help to find the action or hook in order to fire function insert into post in media library. I did create a new tab for my videos and would like to insert my converted video by ...
2
votes
3answers
75 views

How to remove the “Path” line in the WordPress Editor for end users who are submitting a form?

There is a horizontal box of one-line height at the bottom with the character "p" in it that I want to get rid of for end users. I don't really care if it is there in the Dashboard Editor for site ...
0
votes
0answers
23 views

Can't select right word in editor

I have a problem in my WordPress /wp-admin. When I add a new post and write something like: Lorem ipsum te erat phaedrum partiendo cum. I can not select the word "phaedrum" from the paragraph ...
0
votes
1answer
45 views

How to dynamically generate wordpress editor on frontend?

I want to initialize the wordpress editor dynamically on frontend. I have tried to include the following scripts: wp_enqueue_script('editor'); wp_enqueue_script('media-upload'); ...
1
vote
0answers
36 views

wp_editor in metabox not working

So, I've created a meta box within my page to allow my client to be able to add content into multiple different content blocks dynamically. I've done that using the wp_editor function like so. ...
0
votes
0answers
91 views

Get and Display Content in wp_editor

I am building a simple plugin where I display a visual editor in the backend. My Code looks like this: $content = ''; $editor_id = 'ssp-editor'; $settings = array('textarea_name' => ...
0
votes
1answer
67 views

remove/hide wp-editor

I have created a meta-box for a certain page_template. So if the adminpage is loaded with the template it shows the metabox. This does not require the wp-editor to add content. So I would like to ...
0
votes
0answers
25 views

How to remove “justifyfull” in TinyMCE

In my functions.php I have following: function myplugin_tinymce_buttons_2($buttons) { $remove = array('formatselect', 'justifyfull', 'forecolor'); return array_diff($buttons,$remove); } ...
0
votes
1answer
97 views

How to use wordpress text editor in php page

I read this article: Use Wordpress Text Editor in non-wp page and found out no solution. Currently i want to embedded a wp text editor to a php page. I tried tinymce but the text editor does not look ...
0
votes
0answers
40 views

use wordpress editor with fancybox

Hi i'm making a wordpress plugin that use fancybox. The problem is the page using fancybox does not use wordpress built-in css and js like wp editor: $my_text_setting = ...
0
votes
0answers
41 views

jQuery keyup() on Visual editor

I need to trigger typing in Visual editor and to get current text from it. Is it possible? Then next line are not working: $("visual_editor_selector").keyup(function(){alert("Changed")}); ...
3
votes
1answer
62 views

Detect a focus on wp_editor

I wan't to detect/callback when a wp_editor(..) output text-area/content-editable is focus. Quite a simple question that I could not find anywhere. <div class="compose-body"> <?php ...
2
votes
1answer
91 views

wpeditor issue - shows both mode and not able to focus/edit during visual mode

I am trying to integrate wpeditor to a textarea using the code below. It brings the TinyMCE editor but if the user leaves the page on visual mode and tries to edit the same again, the visual mode ...
0
votes
0answers
53 views

wp_editor with custom editor_id not working

When give editor id like my-form[myeditor] form wp_editor doesn`t work and text editor (Html tags) only shown not also visual editor $settings = array( 'media_buttons' => false ); ...
1
vote
2answers
92 views

Hide old attachments from wp media library

I am trying to limit the files that are shown in the wordpress media library popup (from wp_editor). Currently every single file that I have ever uploaded to my site is shown in the library but I ...
0
votes
1answer
132 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
1answer
106 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
68 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
1answer
40 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
635 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
98 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 ...
1
vote
1answer
225 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
238 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
82 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
101 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
198 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
71 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
167 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
136 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
122 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
150 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
1k 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
127 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
30 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
32 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
167 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
103 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 ...