Questions tagged [tinymce]

TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL. TinyMCE has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

209 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

How to add TinyMCE Editor to customizer in WordPress for replacing textarea type?

How to add TinyMCE Editor to customizer.php in WordPress for replacing textarea type?
0
votes
0answers
13 views

Custom TinyMCE buttons not loaded in html mode

I'm trying to add multiple shortcode custom buttons to the TinyMCE wordpress editor. I have writed this code and it's working fine but the buttons are loaded only on the visual editor mode, Is it ...
0
votes
0answers
17 views

Use font-awesome for TinyMCE icons

I've found a solution to add my custom shortcodes to the wordpress TinyMCE editor. I don't have custom icons for the shortcodes ao I'm thinking to use font-awesome. Is possible to set them inside the ...
0
votes
1answer
62 views

TinyMCE Advanced Link Class List on the main editor

I'm using the plugin TinyMCE Advanced and would like to achive a "link_class_list" to the editor when inserting a link. I tried a hundred things, but can't seem to get this work with the main (content)...
0
votes
0answers
48 views

Visual editor keeps removing non-breaking spaces

I'm on a virgin WordPress 5.2.3 installation with twenty nineteen theme using the classic editor. I'm facing the problem, that   entities added in text tab are removed once I edit the text in ...
0
votes
0answers
10 views

Process TinyMCE input dependent on custom field

I have a custom post type with several custom fields of type Wysiwyg Editor. My wordpress instance uses tinyMCE as the visual editor. I want to process the text the users input into those fields with ...
0
votes
0answers
15 views

tinyMCE line length indicator

I want a line length indicator similar to https://codepen.io/beneggett/pen/GJgVrp in the tinyMCE Editor included in wordpress. Any ideas on how to acomplish this?
0
votes
0answers
68 views

Using wp_editor() when not logged stopped working

I've build myself a custom page template. Within this template I'm using the wp_editor() function. Sadly, when I logout now from my wp site and go now to the page I want to see, I'm getting an error ...
0
votes
0answers
32 views

Adding tag-types (or styles) to TinyMCE in WordPress

In these styles here: Can then add a new line called: 'Medium paragraph' and 'Large paragraph', that wraps that content in <p class="paragraph__medium"> ... </p> or <p class="...
0
votes
0answers
63 views

Custom Drop Down in TinyMce in Elementor

I'm using elementor and added text in drop down,"Span", but its not working i want to know how to add functionality such that it will also work like "Heading 1,2,3,4.." are working. I added "Span" ...
0
votes
0answers
15 views

Wordpress Tinymce editor two space with nbsp;

when i write in wordpress editor the out put is this : {A}&nbsp; &nbsp; &nbsp; {D}&nbsp; &nbsp; &nbsp; {F}   and space . but i need to this : {A}&nbsp;&nbsp;&...
0
votes
0answers
26 views

wp_editor in Frontend Form Not Working With Autosave JS for Form

I have a Site For Frontend Publishing. As it is obvious i use a form with various fields like tags and categories. I took a autosave code snippet from another answer Stack Exchange. setInterval(...
0
votes
0answers
12 views

Inconsistent link coloring in WordPress editor

I am experiencing inconsistent color styling on <a> tags in the WordPress classic WYSIWYG editor. If I highlight the text in the link, the editor wraps the inner text in a <span> but if I ...
0
votes
0answers
23 views

What might cause a parse / syntax error in wp-tinymce.js?

To elaborate on the title....I have a site were the Visual editor either doesn't appear to display the text content (text is white on white), or the option to switch to and from the visual editor ...
0
votes
0answers
10 views

Upgrade to the latest version of TinyMCE

I am planning to use the latest version of TinyMCE in WordPress editor. I have disabled the Gutenberg using the following code. add_filter('use_block_editor_for_post', '__return_false'); But for ...
0
votes
0answers
487 views

Error in backend: Failed to load plugin: tabfocus from url

I'm getting an error that looks really wierd (notice the red error, running all the way down from top to bottom, over the left sidebar): The error is: Failed to load plugin: wordPress from url ...
0
votes
0answers
34 views

Strange wp-admin problem for all users/adminstrators except the original one?

I don't get this but for all wp admin users except the original main user i get a strange error which causes the visual editor to fail: load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,...
0
votes
0answers
18 views

Need to embed Gutenberg editor in my plugin instead the Classic one

I have plugin which can send the letters to the different emails. In this plugin i have Classic Editor (TinyMCE) with which I can write letters. So, I need to embed Gutenberg editor in my plugin ...
0
votes
0answers
214 views

How can I change TinyMCE's default block format?

I have a particular post type where I want the editor's default format block to be H3. So, when you create a new empty post and begin typing in the editor, the text would automatically default to ...
0
votes
0answers
26 views

How to stop TinyMce from converting image url into <img>?

My TinyMCE Editor automatically turns image URLs into an embedded image. How can I deactivate this behavior and just display the URL instead?
0
votes
0answers
25 views

Paste as plain text but keep the spaces

I use paste_as_text = true to remove all styling from forum posts in the frontend. But this also removes all the leading spaces on each line. Is there a simple way to avoid the latter?
0
votes
3answers
248 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 ...
0
votes
0answers
40 views

How to create a TinyMCE dropdown with dynamically generated shortcodes

Is it possible to create a TinyMCE dropdown menu with dynamically generated shortcodes? This is my code for shortcodes: function filter_button_group($atts){ $attributes = shortcode_atts( array( ...
0
votes
0answers
46 views

Calling wp_editor in an iframe

I'm trying to set up a basic classic TinyMCE editor that comes up in an iframe which is loading a PHP file. In the PHP I'm using a require_once on wp-load.php to load WordPress, and even with just a ...
0
votes
1answer
475 views

Failed to load resource: the server responded with a status of 404 (Not Found) admin-ajax.php

Failed to load resource: the server responded with a status of 404 (Not Found) admin-ajax.php while insert image in to post, and when I add custom html widget in to side bar this error will appear....
0
votes
1answer
434 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
21 views

Classic TinyMCE messing up only Contributor's HTML

I use a plugin that loads pre-defined HTML for my posts. I don't need the Visual editor, so I've disable it for everybody. Also, I want TinyMCE not to mess with my code. Nothing, no auto formatting ...
0
votes
1answer
97 views

Adding attachment custom field metadata to TinyMCE <img> tag

I've successfully added a custom field to the media upload dialog, but now I need (1) this field to be present on the <img> tag on post content whenever an image is inserted, and (2) a way to ...
0
votes
1answer
19 views

Client on iPad accidentally adding <code> tag to posts while writing

A client of mine complains that text gets 'randomly highlighted' when he is writing Wordpress posts on his iPad Pro. He uses the web interface. I got him to stop deleting the 'highlighted' text and ...
0
votes
1answer
25 views

Add custom TinyMCE 4 Button: Is it mandatory to have one JS per button?

I'm editing a Wordpress Plugin, trying to add another button. I had a look to this question (Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1). But it doesn't work The JS file: https://...
0
votes
0answers
156 views

Deny php execution in /wp-includes - using .htaccess in /wp-includes VS root folder

Trying to secure my WP site. In an attempt to deny php execution from the wp-includes folder wondering if these two methods are effectively doing the same thing? 1) add new .htaccess file to root of ...
0
votes
2answers
184 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
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
170 views

TinyMCE function causes issue in AVADA theme

I use Avada Theme 5.5.2 + WP and discover an issue that is caused by the function my_tinymce_setup_function( $initArray ). When using this function it updates correct the into the tables. But in the ...
0
votes
1answer
43 views

Changing code with (&nbsp;) when author updates their post (TinyMCE)

I have a problem like this: every save changes code <td></td> to <td>&nbsp;</td> which is terrible beacause I have big tables and it makes final code much bigger and ...
0
votes
0answers
74 views

How to get values from Tinymce visual editor popup?

Hello this is mi first question here I hope I get some answer, since i ve seen lots of unanswered questions. I am making a plugin and I need to save values entered in tinymce button popup. The ...
0
votes
0answers
260 views

Understanding automatic text formatting in the Wordpress editor

Why does the text editor remove paragraphs and line breaks? Surely maintaining basic formatting such as paragraphs or line breaks is a basic requirement in all CMS systems. It's hard to believe that ...
0
votes
1answer
130 views

Preserve indentation, HTML5 shorthand in editor

I know there are other questions about tinyMCE, but this one is a little different. Let's say I create an unordered list that drops the closing li tags. I also have class attributes that I don't want ...
0
votes
1answer
29 views

Wordpress Editor without buttons

I'm trying to add Worpdpress editor on a modal page and in a different php file, but it doesn't show me the buttons, I put the screenshot Also in the php file, First I hidden the editor to load the ...
0
votes
1answer
396 views

Nested ordered list in tinymce

I'm trying to change the behavior of tinymce regarding ordered list (using the plugin advlist), actually if i type an ordered list i've got this html : <ol> <li>first item</li> &...
0
votes
0answers
357 views

Custom Post Type archive link in WYSIWYG editor

I would like to add a link in the WYSIWYG editor to the archive page for a custom post type. I have a custom post type case-studies and would like to add a link to the archive page in the tinyMCE ...
0
votes
0answers
319 views

Adding a class to custom TinyMCE button using WPLinks dialog box

I'm trying to achieve a custom button within the WordPress editor that a user can click to insert and the link is added, already styled with the relevant classes. I've added a custom button to ...
0
votes
0answers
21 views

Still desperate about multiple TinyMCEs in widgets - is there any good solution to this yet?

In a project I have to use multiple tinyMCEs within a single widget. These widgets are also used within the Page Builder Plugin by Siteorigin. However there is still a fundamental problem with ...
0
votes
0answers
335 views

How to load WP_Editor JS files manually (with AJAX)?

I'm loading WP_Editor manually through AJAX, but I'm running into some issues with the way I'm loading things. Firstly, I'm including all the <script> tags into my AJAX callback, which are ...
0
votes
1answer
125 views

Sanitize AROUND shortcode

I have a Wordpress plugin which allows users to mark a bullet list and then add a shortcode around it. Unfortunately, when users select the bullet list, the first UL is not selected and therefore they ...
0
votes
1answer
30 views

Identifying first and last instance of shortcode in post

I'm creating some shortcodes that will build an accordion. I need the following: [accordion] [accordion-item title="Trigger Text"]Panel Content[/accordion-item] [/accordion] I want to create a ...
0
votes
1answer
737 views

Add WordPress Core CSS into editor-style.css

I am using a custom child theme (from Parabola, Cryout Creations, lastest version), but it seems that the editor-style.css file is not up-to-date. Rather than rewriting everything, I would like it to ...
0
votes
1answer
941 views

How to use value from <select> modal tinymce windowManager?

Hello im using a Javascript File for integrating a button with a function in my TinyMCE editor in my Wordpress enviroment. I want to get the value from the select-Tag field and use it for further ...
0
votes
0answers
204 views

Remove MS Word comments from pasted text

Have been looking all over the web for a solution to this but as yet, cannot find anything. When users cut and paste from MS Word doc (where it has comments), these comments make their way into the ...
0
votes
0answers
411 views

TinyMCE how to add css when inputing a text

I am sorry if this has been asked or it is somewhere on the internet but I just couldn't find anything helpful I have a TinyMCE plugin which when clicked shows up a container with a text box and a ...