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
10 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( ...
-1
votes
0answers
13 views

Classic Editor works for my employer but not for me. No idea why

I'm doing some work on my employer's WP site. His site uses the Classic Editor (TinyMCE), and when I try to use it, the font color is white, therefore making all text invisible in the editor, unless I ...
0
votes
0answers
8 views
0
votes
1answer
655 views

Adding microdata using Structured Data Markup Helper HTML

I am trying to add schema microdata to a wordpress website. I have tried to insert some microdata directly in the wp editor (text mode) but every time i save the page it does not save the code. I ...
0
votes
0answers
11 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
8 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
667 views

Add Button to TinyMCE Custom Menu

I've added a new button with a menu to the TinyMCE visual editor using this tremendously helpful tutorial but would now like to add further items to this menu depending on whether various post types ...
0
votes
1answer
691 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
29 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
1answer
686 views

Wordpress tinyMCE Keep Wrapping <p> Tags To HTML Codes When Saving

Wordpress tinyMCE keep adding <p> tags when I saved my custom post types in visual mode opened! I had searching for many solutions, but not working. Here is the solution that I found, but this ...
2
votes
3answers
1k views

Should the WP post editor B (bold) button be inserting a <b> tag instead of <strong> in HTML5?

Using WP 4.0. I thought that the html5 schema was supposed to be turned on by default. That would mean that clicking the B (Bold) button would generate a <b> tag, rather than a <strong> ...
0
votes
1answer
872 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 ...
2
votes
2answers
2k views

How to make Wordpress and TinyMCE accept <a> tags wrapping block-level elements as allowed in HTML5?

Starting with version 5 the HTML standard allows <a> tags wrap block-level elements. On a specific page I need to wrap a heading and an image with an <a> tag: Some intro text. <div>...
0
votes
0answers
34 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
24 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
8 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
26 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
2answers
794 views

wp-tinymce.php 404

My visual editor isn't working on a site after just launching it to a new server. I assumed a permissions issue, but the file itself is set to 644. I tried 755 on it as well and still no go. The ...
0
votes
0answers
8 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
25 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 ...
1
vote
1answer
2k views

Disable TinyMCE Table formatting width/height

Hi there I want to disable automatic formatting of table/td/tr widths and heights in WordPress TinyMCE. I create the table, literally type the data in (not copying it from word or anything like that) ...
0
votes
0answers
13 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?
5
votes
4answers
13k views

tinymce is not defined when not using wp_editor

I am using jQuery tinyMCE to populate dynamically generated text areas with tiny MCE editors. When I use the WordPress wp_editor function before I call the jQuery version, I have no issues. If I do ...
1
vote
1answer
426 views

Multiple Tinymce/wp_editor in WordPress >4.8

I'm struggling for two days and started here with success: Why Can't wp_editor Be Used in a Custom Widget? I managed to have multiple TMCE on one page (displayed by a widget); all save data ...
0
votes
0answers
64 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 ...
1
vote
2answers
860 views

wp_editor in widget breaks after save (no buttons and visual tab broken)

My goal is to get wp_editor working in a simple widget which the admin can use to add text content on an admin options page. Here we go in wp-admin/widgets.php everything looks sooo good right. When ...
0
votes
0answers
30 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
1answer
812 views

how to see P and BR tags in tinymce?

As a developer, I'd really like to have the ability to see every tag written out on the editor in source mode. Is there a way? Some filter, action, or so?
0
votes
1answer
1k views

Inline Editing with wp_editor and tinymce (problem with textarea)

I want to use the new inline editing from tinymce with the wp_editor function in wordpress. Here is some info on how to set up tinymce inline editing http://www.tinymce.com/tryit/inline.php The code ...
1
vote
2answers
425 views

TinyMCE Styles Dropdown not adding html tags other than span

I am trying to add h1,h2 .. in the TinyMCE Styles Dropdown with my other html elements. I have tried the following code, but the problem is it only adds styles if I use span as 'block' value. If I ...
1
vote
1answer
435 views

accessing wp.media api from a tinymce plugin

I'm trying to create a tinymce plugin that generates a shortcode containing two image ids: [image-fade old="xx" new="yy"] I would like to let users select images directly from the media selector ...
0
votes
0answers
50 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
21 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" ...
1
vote
1answer
472 views

Preserve shortcode content formatting

How can I preserve the formatting of the content within a shortcode block when I switch back and forth between the visual and text editor in TinyMCE? As in, the stuff between [myshortcode] and [/...
0
votes
1answer
457 views

How to make float element in tinymce

I would know how its possible to add a float:left or float:right in tinymce ? I know how to do this for a picture but what is the best solutions for all elements ?
0
votes
0answers
12 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
19 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
1answer
498 views

Is it possible to disable the image alignment options in the post editor?

By default, when you insert an image into a post, it has some image alignment options (see below). In my theme I want every image to be full width. Of course, it's easy for me to change the front-end ...
0
votes
1answer
582 views

Use schema.org HTML in TinyMCE Editor

I want to use HTML (schema.org) in my TinyMCE Editor. I use the following script in my custom.php // Prevent TinyMCE from stripping out schema.org metadata function schema_TinyMCE_init($in) { /** ...
0
votes
0answers
10 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 ...
4
votes
3answers
4k views

Remove “Are You Sure” dialogue when leaving editor

Anyone know of a nice way to disable that pop-up dialogue when exiting the post-editor? It says "This page is asking you to confirm that you want to leave - data you have entered may not be saved." ...
0
votes
1answer
556 views

TinyMCE Multiple Custom Classes Selections

I wanted to use some classes inside my WP TinyMCE Editor. I googled some scripts/functions and seems working fine at the beginning. While I am exploring to add more stuff to the script and add style ...
9
votes
1answer
11k views

TinyMCE editor is breaking my beautiful HTML

This is pretty much an exact duplicate of: How to make Wordpress and TinyMCE accept <a> tags wrapping block-level elements as allowed in HTML5? and HTML5, WordPress and Tiny MCE issue - wrapping ...
0
votes
0answers
15 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
1answer
581 views

How to force wp excerpt to use br tag?

wp editor was replacing br tag with p tag. not all the solutions here worked. It was causing problem with design. So i disabled wpautop with below code.... remove_filter( 'the_content', 'wpautop' ); ...
0
votes
1answer
531 views

DOM reference to TinyMCE editor element (button)

I guess this should be a very simple question, but I'm not too familiar with overall functioning of Wordpress / TinyMCE so I'm struggling: I've added a custom button to TinyMCE and need some kind of ...
2
votes
1answer
491 views

Show All Posts Insert Edit Link

When I click to insert/edit link in the tinyMCE rich editor for a post, then click "Or link to existing content", it shows only posts that are live and published. Is there a way to get the list that ...
0
votes
1answer
507 views

Using TinyMCE fiddle for node filter to add id attribute to anchors

I'd like to edit the code of the anchor-maker in TineMCE so it will paste into the code the following line: <a name="#ANCHOR" id="#ANCHOR"> instead of: <a name="#ANCHOR"> Where do I find a ...
1
vote
1answer
542 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'); wp_enqueue_script('...
1
vote
1answer
613 views

TinyMCE 4 remove/add attributes for all images

i want to search for all images that have been add to TinyMCE 4 and: Remove the height attribute from the images Add style="max-width: 100%;" to all images what is the best way to do this tasks? ...