Questions tagged [wp-editor]

The wp_editor() function allows plugin and theme developers to render a custom instance of the TinyMCE editor used by WordPress

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

Media library not working with wp_editor() on the front end

Very related: Add Media has stopped working in the front end since 4.5 update I want to run the wp_editor() function to load the classic WordPress editor on the Front-End. I need to do this out of ...
1
vote
0answers
26 views

Append wp_editor to Dynamically created textarea

So...the same question was asked 9 years ago: Dynamically textarea with TinyMce editor and I dont see a good answer and we now have the wp.editor API. Ive tried a few things, but cant add a WSYWIG ...
0
votes
0answers
11 views

Theme options missing from edit page

I'm still somewhat new to WP, so I apologize if this is an obvious thing I'm missing. When I click to edit or create a page, I seem to remember that I would get a page with all sorts of options, and ...
0
votes
1answer
20 views

TinyMCE as comment editor - encoding issues

I've implemented TinyMCE as my comment form on both the front- and back-end, using the below code (sourced from some questions here): // Enable TinyMCE as frontend comment editor for new comments ...
1
vote
0answers
37 views

WP Editor Issue in Backend

I am stuck on silly issue of wp_editor function in WordPress backend in custom plugin page. See issue for wp_editor in attached images I have called the wp_editor function like this <?php ...
0
votes
0answers
119 views

How to use wp_editor and save its data in wp_posts table

Recently I want to use wp_editor on a custom plugin where i add it inside a form and want to save its data in wp_posts table. So, I have created a new post type car and adds a field with wp_editor ...
0
votes
0answers
10 views

My edits are not saved

Everything used to be fine, but now for some reason I’m editing the record, but the old content remains, the new one for some reason does not appear. For example, I have everything stored in the pages ...
1
vote
1answer
42 views

Style classic editor buttons

I'm trying to style the buttons in the classic editor of wordpress, in particular to change color of the text inside or change the font-wright property. Using the browser inspector tool I looked for ...
1
vote
0answers
22 views

wpautop is not working when displaying content saved using wp_editor in a custom meta box

I am using wp_editor in a custom meta box. It is saving the content to the post metadata. And displaying it in the meta box as it should. The problem is when I am trying to display this content on ...
1
vote
1answer
45 views

Limit Block format tags in WordPress wp_editor

I'm working on a custom meta box and i am trying to limit the Block format tag to just P, H3 and H4 tags, i did it this way and not sure why it doesn't display the block format dropdown; wp_editor( $...
1
vote
0answers
29 views

Removing line breaks when in text view with wp_editor

While working on a custom plugin, I needed to add the wp_editor in the admin to let the user add its own content. I want the user to be able to write custom rich texts with the "Visual" editor mode ...
7
votes
0answers
279 views

How to filter or remove default panels in Gutenberg PrePublish Panel

I would like to edit the text or remove and re-create the Publish panel of Gutenberg's PrePublish Panel in the editor sidebar. I know I can use wp.data.dispatch( 'core/edit-post' ).removeEditorPanel( ...
1
vote
0answers
27 views

How to set wp_editor to be email friendly?

I am sending emails via wp_mail() using a text/html header. So i need html formatted content. I want to use wp_editor() to edit my custom email template options. It has a Visual and Text tab for ...
0
votes
0answers
68 views

/home1/vultusbl/public_html/wp-includes/class-wp-hook.php on line 286

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'et_tabs_admin' not found or invalid function name in /home1/vultusbl/public_html/wp-includes/class-wp-hook.php on ...
2
votes
0answers
50 views

How can I control multiple editing of wordpress posts?

I am managing multiple authors blog, I have issues of editors taking over the stories that someone else is currently editing. The default wordpress warning will display but some of them ignore it and ...
1
vote
1answer
447 views

Convert this textarea to rich html format via wp_editor

I have a texarea in a page that works like a charm, but I would like to convert the area to a html rich wp_editor. Could anyone tell me how to convert this textarea to a wp_editor field?? Thanks <...
0
votes
0answers
21 views

Blank page for editing page, console error

When I try to edit or create a new post, I receive a blank page but I still can view the full source of the page and seems that all displayed without PHP errors. On console there is error for react-...
0
votes
0answers
102 views

Why there is no edit handle on my elementor page?

I have a page built with elementor. There are multiple blocks on my page but I don't see the edit handle when I hover over an element/section. As seen in the attached screenshot, the mouse is hovering ...
0
votes
1answer
139 views

How can I get the standard WP-Editor through Javascript?

In PHP I can do wp_editor( 'content', 'editor_id', array() ); And the result looks like this: The standard WP-Editor with all the buttons, plus my custom button (the blue square). I have tried to ...
0
votes
1answer
72 views

Make wp_editor required

I have a page with multiple wp_editors. I need to make 2 of them required. I tried the following, but it didn't work. I did put it right after the function that loads the page, but not sure if it ...
0
votes
2answers
66 views

wp_editor in add_meta_boxes does not show gallery

I have added a meta box in the page edit section: add_meta_box('custom_section_box', 'Sections', array($this, 'section_box'), 'page','normal','high'); Within the box, there is a wp_editor call: $...
1
vote
1answer
118 views

Add table controls with wp_editor minimal editor configuration ('teeny')

I want to add the table controls for wp_editor(tinymce) initiated with teeny=>true. Here is what I have done so far (without success): <?php $tinymce_options = array('plugins' => "table", '...
0
votes
1answer
43 views

How do I render content from a wp_editor in a plugin setting field?

I have a plugin setting that uses wp_editor() to handle the input and will get echoed as part of a shortcode. Everything is working great on the admin side but when I echo the output on the client ...
0
votes
2answers
112 views

How can I apply preventDefault() to the click on CodeMirror-hints?

If I click on a selection in the autocompleter of WordPress in codeMirror, the whole field is closed. To prevent this I want to add preventDefault to the click event. var cm = wp.codeEditor....
0
votes
1answer
149 views

Load WordPress Editor .css on Front End

This issues seems to have cropped up for me after a recent WordPress udpate (I'm on 4.9.9) as I haven't had issues before. I load wp_editor on the front end using the following code: $argswp = ...
0
votes
1answer
576 views

Gutenberg - Custom blocks not working as expected?

I am making my very first custom block in gutenburg editor using this tutorial. NOTE:- ALL THE CODE I HAVE WRITTEN IS INSIDE THE THEME NOT AS A PLUGIN And the output came correctly the block started ...
0
votes
1answer
392 views

wp.editor.initialize does nothing

I'm trying to add additional wp_editor instances when a user clicks an "Add content" button in the back-end. I have it mostly working, except that the user needs to save the post after adding the ...
0
votes
3answers
244 views

Is there a way to get wp_editor (tinymce) content?

I want to get the wp_editor (tinymce) content then find a sentence by specific word with regex. However, have no idea how to get the content When a post is published or updated, the function will get ...
1
vote
1answer
40 views

WordPress code editor VS customizer “built-in CSS editor”?

I needed to make some CSS changes to my WordPress site (child theme) earlier and opened the WordPress editor inside "Appearance": Appearance > Editor > someCssFile.css Inside the editor page, ...
0
votes
1answer
432 views

wp.editor.initialize does not show the same default toolbar

In a custom post type of my plugin, for the edit post page, there is a WP Editor inside a metabox. In this metabox there is a button to add WP Editors via jQuery and Ajax. I managed to do it but wp....
0
votes
0answers
14 views

Embed on WordPress shows a black video player

We are trying to add YouTube or Twitter URLs in the editor however it converts them to a video player that does not work. When I press edit on that page it shows the tweet/video player fine, as soon ...
0
votes
1answer
24 views

See double taxonomy inputs in WP editor

I registered 3 taxonomies for a custom post type, but they show up in 2 places when editing a custom post type. I would like to only display the input boxes on the right of the editor. How to remove ...
3
votes
1answer
191 views

'Add Media' button doesn't work when editor is initialized from javascript

I am trying to instantiate the wp_editor with javascript, which works nicely except the 'Add Media' button does not work. There are no errors, but clicking the button does nothing. The simplest test ...
0
votes
1answer
32 views

WordPress editor issues

I was not able to submit any post through WP Editor and users are also not able to submit a new post.There was a problem with the editor and I reinstalled WordPress, it solves for me but does not for ...
0
votes
2answers
182 views

Remove distraction free mode from teeny editor

I'm trying to remove the distraction free mode button from the editor, but i can't make it disapear. Here is the code im using: add_filter( 'wp_editor_settings', function($settings) { $...
0
votes
1answer
391 views

Custom wp.editor.initialize settings ignored

I built a meta box where a click on a button shows a textarea with rich text editing enabled. After creating the textarea and appending it to the DOM, I run this to initialize the editor: console.log(...
0
votes
0answers
59 views

“Formats” Select Menu in WP Editor doesn't show up with correct colour

I added the Dropdown "Formats" and defined some custom styles. The followed tutorial is in this section. Everything is correct, but there's a small issue: My custom formats titles within the ...
0
votes
0answers
13 views

automatically apply clear formating when pasting text on editor

I know there is a button on the editor that clears the formating styles from other text editors. But is it possible to apply this clear formating automatically when text is pasted?
1
vote
0answers
480 views

How to add custom button in wp_editor

Sometimes I have to write some handy code.ie: <div class="row w-100"> <div class="col-md-6"> Actual Content </div> <div class="col-md-6"> Actual ...
1
vote
0answers
46 views

Edit Page blank

I have been given the task of looking after our office website which is a WordPress website. I have been creating and maintaining websites for over 25 years and have used WordPress, but it was a long ...
0
votes
2answers
88 views

how to display wp_editor in a page

I am making my theme. I am using wp_editor in front-end to submit post. I submit through wp_editor in the specific page, and this being displayed in single.php. At single.php I am using <?php ...
1
vote
0answers
108 views

how to set max-length at the wp_editor

I am using wp_editor in front post submit form. this works good. But I don't know how to set the max-length of this field like input field. I there any way to set the max length of wp_editor in ...
1
vote
1answer
216 views

Stop WordPress Visual Editor converting backticks into code blocks

I need my frontend wp_editor() to not convert backticks into code automatically. I have checked the settings config in the tiny_mce_before_init filter as well as the documentation on the TinyMCE ...
0
votes
0answers
291 views

front post submit using wp_editor

I am making my theme with studying. I want front-end posting that can be written by users. I made form. like this. <form class="rnm_fe_write_contets"> <ul> ...
1
vote
0answers
284 views

How to Add TinyMCE to widget

I'm trying to create simple widget with TinyMCE rich editor but it's not working My widget code: add_action('widgets_init', 'string_example_name_init'); function string_example_name_init() { ...
0
votes
1answer
233 views

wp_editor embed shortcode not working within my plugin

for my own plugin I have a create-form which includes at least two editor fields and I insert them like this wp_editor('', 'dbfield'); The editor is shown in the form, it gets saved into the ...
0
votes
2answers
30 views

Editor's role in WP

Sorry for what is probably a very basic question - I've managed my own WP site for a fair while now and am bringing a colleague on to help as I'm undertaking a project at work which will take up more ...
1
vote
0answers
479 views

WordPress Visual Mode Not Working - adding span code while clicking

After the update of WordPress 4.9.6, I got a very strange issue that I am not able to write anything in WordPress editor in visual mode. When I'm trying to switch from text to visual I am getting ...
1
vote
0answers
126 views

How to pass the wp_editor content using jquery

I want to add the wp_editor content using jquery. I have hidden the wp_editor that needs to be displayed in the thickbox on one of the button click <div class="hidden-editor-container" style = "...
0
votes
1answer
256 views

Get admin area editor in frontend

I'm new to WordPress development, so apologies if this is a simple matter. I have created several custom post types and I want to let users add/edit content from the front end. I thought it's easy. ...