Questions tagged [visual-editor]

The default visual editor in WordPress is Tiny MCE. There is an API that allows users to adapt the visual editor to their needs. It is possible to use other visual editors as well.

104 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
271 views

Enable Visual Editor In Comments On CPT Edit Page

I'm trying to adjust the comment form on a custom post type in the admin edit page only. The end result I'm looking for is: Allow switching between Visual and Text editor through the tabs on the top ...
3
votes
0answers
584 views

Making a custom widget that includes a tinymce and works in Site Origin Page Builder

For a client I'm using Site Origins Page Builder plugin. It enables the client to make rich layouts for each page by dragging and dropping widgets. Site Origin widgets that require a WYSIWYG-editor ...
3
votes
0answers
604 views

Visual Editor freezing on text highlight since 4.3

Ever since I updated my website to 4.3 my visual editor is freezing every time I try to highlight a piece of text, or even place my cursor someplace random. This only seems to be happening on the text ...
2
votes
0answers
169 views

TinyMce in WordPress - Getting the “fullscreen” button to stay on the right when customising button layout

I'm using TinyMce inside WordPress and I have customised the button layout like so: add_filter( 'tiny_mce_before_init', 'blm_format_tiny_mce' ); add_filter( 'mce_buttons', '...
2
votes
0answers
33 views

How to add a custom field after wp post

I want a subtitle box after the title. How to show it in the post editor?
2
votes
0answers
103 views

Added custom styles to Visual Editor. Classes are appended and not replaced as intended

Followed several tutorials and have added custom classes in the formats section of the visual editor. The classes used are being appended and not replaced as I had intended. Is there a way to have ...
2
votes
0answers
543 views

How to make a customized “Create Gallery” tab in the 'Add Media' window?

I'm developing a plug-in and wanting to make a customized version of the the "Create Gallery" tab of WP v4.0, but have the resulting output (i.e. what gets inserted into the TinyMCE editor) to be ...
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>...
1
vote
0answers
29 views

Visual editor keeps stripping my <a> tags

My first post, please forgive me if I'm doing it wrong. For some reason when switching to the visual editor WordPress will strip out my a tags. "Don't use the visual editor" isn't an option, I'm ...
1
vote
0answers
55 views

Popup box when Clicking on Insert into post button in wordpress

I need to show a alert popup on clicking Insert into Post button in Media Library of WordPress, if the selected Image is less than some width and height in Library. Where can I find the onClick event ...
1
vote
1answer
118 views

Inline Style attribute getting stripped off

I am trying to style a particular section of a blog post using the WordPress editor in HTML mode. <div style="background: red;"> Special section </div> The works fine. But when I add ...
1
vote
0answers
368 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() { ...
1
vote
0answers
519 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
76 views

Visual editor not showing all table rows

Does anyone know why the visual editor does not show all table rows. I have over 30 rows of data, but in the visual editor only ten are visible, the text editor is the only way to access the rest. ...
1
vote
0answers
347 views

Documentation for adding a tinyMCE view for visual live preview of custom shortcode?

I'm trying to add a WYSIWYG visual representation for a custom shortcode into the tinyMCE editor but I can barely find any information on how to do that. Researching the last few days resulted in ...
1
vote
0answers
630 views

TinyMCE - how to select tags node from the place where the caret is?

Hello to everyone! I've been wracking my brains, trying to find a solution for this. And here is what I have. Task: I want to detect in which tag my cursor(caret) is standing, and then to select ...
1
vote
0answers
27 views

Custom tag being removed from text editor

I have visual composer installed. I have a special "weather widget" that I need to add to a page, but it keeps getting stripped when I add it into a text block. <wx:widget type="alerts" template="...
1
vote
0answers
439 views

Open Insert/edit link popup

I'm using visual editor on front end. When clicking the Add/insert link button, it displays following By clicking Link options icon, the following popup appears Is it possible to directly open the ...
1
vote
0answers
54 views

Add visual editor style only on widgets.php page

I'm attempting to add a visual editor style with the function add_editor_style('visual-editor.css');, but only on the widgets admin' page, and not on post editor screens. I'm using a visual editor ...
1
vote
0answers
233 views

Edit page blank, control buttons missing

Lately I encountered a strange problem while editing posts and pages. I have a blank page with all controls missing (like publish etc.). I tried to deactivate all plugins. I tried to upgrade ...
1
vote
0answers
678 views

Visual Composer shortcode for child theme dir

I have a site using VC that is running on localhost and also on a staging environment. I need to access the child theme directory to call images from within raw-html sections of visual composer ...
1
vote
0answers
145 views

How can I register a custom “Text Pattern” (WP 4.3) for TinyMCE?

WP 4.3 added some really cool editor features: https://make.wordpress.org/core/2015/08/01/editor-enhancements-in-4-3-%E2%9C%A8/ The "Text Patterns" are really useful to create lists, quotes ...
1
vote
0answers
27 views

wordpress 4.4 upgrade visual editor bullets select for not selected elements

Please check attachment for reference image and help me to fix it please.
1
vote
0answers
107 views

Adding a button to the attachment page

I have been trying to modify my theme to show an additional button on the attachment page. The reason for this is that I am using the standard wordpress gallery with a link to the attachment page. I ...
1
vote
0answers
216 views

How to remove &nbsp; from hr in wordpress visual editor

Hi in wp visual editor whenever I add the hr from the inbuilt visual editor button it also adds &nbsp; which is kind a annoying as I have delete it every time manually. Does anyone know any way so ...
1
vote
0answers
136 views

Apostrophe in a possessive appears as an open-single-smart-quote instead of a closed one

Copy & paste the following in the html post editor: <em>John</em>'s Then click preview button and see the results. It will be: John‘s This is grammatically incorrect. It should ...
1
vote
0answers
154 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 ...
1
vote
0answers
38 views

Automatically adds check on hide title and add paragraph when adding text

It most certainty wasn't like that before. I don't know what happened but now when I try to add an enhaced text, everytime when I update the page, the boxes of hide title, add automatically paragraphs ...
1
vote
0answers
32 views

In context click and edit: is it feasible?

I would like the following feature, and I'm willing to put my hands on it, but I'd like that developers more in touch with WP codebase give me some feedback. I want to have some sort of in-context ...
1
vote
0answers
71 views

Visual editor become blank after updating an article

I'm using WordPress 4.0 on an IIS installation. Everything is working fine, execept for one thing. My editor wrote an article and saved it. When page refreshed the visual editor become blank, without ...
1
vote
0answers
715 views

Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”

i have question, how to hide the "shortcode code" when using the "editor" the same as wordpress do with "gallery"? my clients hate to see shortcodes as "code". And the truth, not only him, but a lot ...
1
vote
1answer
515 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 [/...
1
vote
1answer
344 views

More than one TinyMCE (wp_editor) with different $settings['drag_drop_upload'] values breaks

It appears that when I have two+ separate wp_editors with different values for drag_drop_upload they all are built as if they have drag_drop_upload set to true. If I set them all to false they act ...
1
vote
0answers
83 views

Visual editor not working after update

After update wordpress visual editor are blank. I tried disabling all plugins, changing theme to 2014, and cleaning cache in server and pc. (not working)
1
vote
0answers
539 views

Is it possible to make *.js and folders visible in theme-editor

I just created a file test.js in the folder of my own child-theme. Unfortunately it is not visible in the Theme editor. How can I make it visible? And is it possible to make folders visible?
1
vote
0answers
98 views

Getting Theme element into plugins page editor in wp admin

I'm having a hardtime integrating a theme editing element (in default page/post editor in wp-admin) into page/post editor made by the plugin BU Versions. Basicly I need this theme element to get ...
1
vote
1answer
699 views

Add Shortcode inline inside Gutenberg block

In the legacy (classic editor) it was possible to add buttons to the editor toolbar via tinymce API, that will add shortcode at cursor. seems like this is not supported anymore from the tinymce FQA ...
1
vote
2answers
1k views

How to add wp visual editor in a custom widget?

I am developing a widget plugin and want to add a textarea with WYSIWYG editor in widget settings. Any help would be highly appreciated. Thanks.
1
vote
2answers
579 views

How to remove these comments and html tags from the content?

These are actually input fields. paragraph is the textarea field. i query the contents from database and try to show them in this textarea field. But the textarea field is showing me unwanted comments ...
0
votes
0answers
38 views

How to make “formats” dropdown styles apply to only the selected text?

How can I make the format styles dropdown in the classic editor apply to ONLY the selected text? Right now it is applying to the nearest line break from the selected text, I don't like that. Here is ...
0
votes
0answers
17 views

Override custom visual composer shortcodes via child theme

I'm using a custom theme recently bought via themeforest. Unfortunately the dev is not supporting the theme anymore. What i'm trying to achieve is to override branded (created by developer) visual ...
0
votes
0answers
5 views

visual box is not showing any code

My home page showing nothing in WordPress code. When I go to change my home page and click the edit option than it is not showing any visual and text. Showing a blank box. Please help me how can I see ...
0
votes
0answers
9 views

Page Content Gets replaced by “N;” for a page every few days

On my wordpress site i have page built with Visual Composer plugin, but from last few days the page's content automatically gets deleted and replaced by "N;" I don't think its a hack, it just seems ...
0
votes
0answers
10 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
48 views

Block editor: content resets to the previous state in “Edit as HTML” by clicking somewhere outside of the editing window

When I'm adding my custom block and then trying to edit it in "Edit as HTML" mode, any changes reset to the previous state every time when I click outside the editing window. Let say default HTML in ...
0
votes
0answers
18 views

Visual editor is bank on my Wordpress staging

I have a website which was built on Wordpress and Woocommerce Main site: domain.com Staging site: staging.domain.com Environment: Source code run on docker : WordPress:4.9.7-php7.2-apache Mysql: 5....
0
votes
0answers
17 views

Tiled gallery not working, latest Wordpress visual editor

I am trying to create a tiled gallery using the newest Wordpress visual editor as such (this shows up in the editor): But when previewing the site it looks like this: where the image is super big. ...
0
votes
0answers
25 views

Preserve image size while replacing an image in visual editor

I have inserted several images on different pages using the visual editor. If I want to replace such an image, I click on the image in the visual editor, click on the icon to edit the image followed ...
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
128 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?