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.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Visual Editor content disappeared after migration

I migrated all the content from an old website (around 400 posts) and the content is not appearing in either the visual/text editor of a post. It's surprisingly showing the content in the front-end ...
0
votes
0answers
9 views

How to open popup window in block editor with custom buttons?

I am new to wordpress. I want to open a popup from a custom button in the block editor, and return a value to the text being edited. I create the button like this: https://developer.wordpress.org/...
0
votes
0answers
12 views

How to set custom TinyMCE format style as default?

I've created custom TinyMCE formats. In function I have something like this: $style_formats = array( array( 'title' => 'Akapit', 'block' => 'p', 'classes' => 'e-paragraph', ),...
0
votes
0answers
12 views

Error loading wp_editor via ajax in wordpress

I needed help. I'm creating a page external to wordpress and needed to add wp_editor. Here is a simplified example of my code: <? require('../wp-blog-header.php'); define('WP_USE_THEMES', ...
1
vote
1answer
17 views

How to set callback to execute after all the tinyMCE editors have been initialized?

I've loaded a tinyMCE editor using wp_editor function of Wordpress. Now, I want to set value of that editor after it gets initialized. I tried to do it like this: $(function() { tinymce.get(...)....
0
votes
0answers
6 views

Insert tinymce Popup array Gallery

In function i add_filter to mce: function custom_mce_buttons() { if ( get_user_option( 'rich_editing' ) == 'true' ) { add_filter( 'mce_external_plugins', 'custom_tinymce_plugin' ); ...
0
votes
0answers
8 views

Problems when adding button to TinyMCE in wordpress

I need help with the following: When I follow the steps outlined in this answer the button appears in TinyMCE. However, I need to change what it outputs, and no matter what I change it always outputs ...
0
votes
0answers
8 views

Display custom field under image in TinyMCE editor

I have a custom media field called "Source" with the key media_author. I would like to display it under the image in the TinyMCE editor, like the caption field is: The caption field is editable, but ...
-1
votes
0answers
11 views

How to duplicate metabox on button click

I need to create some repeatable fields for a custom metabox. I'm trying with this code, but it will not work, how I can add multiple editors without the needs to register a metabox for each wp_editor ...
0
votes
0answers
12 views

Button to remove a textarea field

I am using WordPress classic editor and putting some text fields into a page manually like this: <input type="text" /> or <textarea rows="2"></textarea> However, it's not clear ...
0
votes
0answers
9 views

Command to render again tinyMCE editor by id

I'm rendering a tinymce editor inside a react app with html passed from wp_editor The editor renders, but I need to switch between the text editor and visual editor to make the editor work. I tried ...
0
votes
0answers
10 views

How to save changes done through tinyMCE setContent in Gutenberg?

I'm trying to make a custom wrapper for selected content in richtext: var selection = tinyMCE.activeEditor.selection.getContent(); var str = '<'+$(this).attr('data-elem')+' style="font-...
0
votes
0answers
19 views

How to create a post selector using TinyMCE editor.PluginManager in WordPress?

I was trying to create a plugin for my site. I added a MCE button to WordPress editor and create a query to generate post list but can't combine both to create a post selector which opens on click at ...
0
votes
0answers
8 views

how integrate file upload with vue TinyMCE

i am using masterstudy theme in my website with wordpress, this theme use vue TinyMCE editor but its dont have image upload file in it , i can use insert image just by link. how can integrate file ...
0
votes
0answers
13 views

How do i remove the added HTML tag before saving in tinymce?

I am wrapping some lines of text in tinymce with a wrapper like this editor.selection.setContent( <span class='wrapper' style='background-color: #ffff00;'> + selectedText + </span> ); ...
0
votes
0answers
7 views

Remove and replace TinyMCE from edit screen

I need to remove the tinymce editor from the edit page of a certain custom post type to replace it with a custom leaflet map. I'm using a snippet I've found on this site, but it will not work, I get ...
1
vote
1answer
51 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 ...
0
votes
0answers
155 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
96 views

TinyMCE in customizer is Not working Properly

I used this code for tinyMCE for my wordpress theme https://wordpress.stackexchange.com/a/274333/77065 but when I try to put text and use option like Bold nothing works, Even after entering text ...
0
votes
0answers
39 views

TinyMCE code works as Theme Template File But Not as Short Code

I have a strange problem I'm hoping you can help me with. The following code works fine in a template file for a theme. But it does NOT work as code in a class in a plugin for a short code. I am ...
0
votes
1answer
160 views

Did Gutenberg block editor change the html in post content during import?

Which HTML is better, pre-Gutenberg or post-Gutenberg? I imported post content from an old and large WP site into a fresh install and new database. Almost 1200 posts along with their meta and related ...
0
votes
0answers
42 views

Configuring buttons on the TimyMCE Toolbar in WordPress (bbPress environment)

If I use this php code to display a Tiny MCE Editor in my bbPress forum (front end): //editor bbpress function bsp_enable_visual_editor( $args = array() ) { global $bsp_style_settings_form ; $...
0
votes
1answer
26 views

WordPress removes paragraphs. How to disable this behavior?

For example, this code: <div><p>Some text here</p></div> Becomes formatted as this: <div>Some text here</div> I think that this is MCE related behavior, because ...
0
votes
0answers
7 views

Hook into tinymce 4 with javascript

I have a Wordpress site using ACF, where several TinyMCE instances may be loaded. I want to be able to hook into these with javascript but am unable to find any documentation on how to do so. In ...
0
votes
0answers
20 views

How can I get the Description textarea field to use the Visual Editor for Attachment Posts

I saw this post involving tags. But I can't figure out which /** * Display advanced TinyMCE editor in taxonomy page */ function wpse_7156_enqueue_category() { global $pagenow, $current_screen; if( ...
0
votes
0answers
104 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
18 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
25 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
116 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
69 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 &nbsp; entities added in text tab are removed once I edit the text in ...
0
votes
1answer
238 views

How do I use jQuery to add the TinyMCE WYSIWYG editor to a textarea?

Using jQuery (as part of a theme or plugin) how can I add the WYSIWYG (TinyMCE) rich text editor to a <textarea>? Specifically, I want to activate it upon certain conditions being met (changes ...
0
votes
0answers
12 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 ...
1
vote
1answer
90 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
1answer
44 views

TinyMCE Visual Blocks plugin set Show blocks option for all users

I want the Show blocks feature of the TinyMCE Visual Blocks Plugin to be activated for all users. I can activate the Show blocks feature under the View menu dropdown manually. See picture. This ...
1
vote
0answers
46 views

TinyMCE function: Remove (earlier) added style from the editor

This is a simple code to create a function in the TinyMCE (Advanced) editor. It creates an icon in the toolbar and once you click it some DIV tags will be added into the editor. This works great.. But ...
0
votes
0answers
16 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
78 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
106 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
17 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
54 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
14 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
27 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 ...
1
vote
1answer
876 views

Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End

I've properly registered a Gutenberg block that consists of a textarea control to store metadata for a post. In the old days, I simply rendered a wp_editor on the edit-form-advanced hook which had ...
2
votes
1answer
188 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", '...
1
vote
0answers
48 views

TinyMCE Editor as component in Gutenberg Block

I'm trying to set up a custom block that uses a TinyMCE as the text editable component, rather than using RichEditor. I can't find anything that really details how to go about this and need pointing ...
0
votes
1answer
675 views

How to disable TinyMce's Paste plugin from turning image URLs into embedded <img>?

TinyMCE's Paste plugin automatically turns pasted image URLs into embedded images. https://www.tiny.cloud/docs/plugins/paste/ I need to disable this behavior since I use TinyMCE in a forum on the ...
0
votes
0answers
827 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
36 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,...

1
2 3 4 5
14