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.

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

in classic editor, is there a way to add media lib files to the content search when creating a link?

In TinyMCE Editor, one can highlight some text, hit Ctrl-K and search for a list of matching posts to link to. Is there a way to add Media Lib Attachments into that list of possibilities?
jchwebdev's user avatar
  • 763
1 vote
0 answers
26 views

Add custom information in editor summary

I made a custom meta data to my posts by using register_meta( 'post', 'my-custom-field', [ 'object_subtype' => 'post', 'type' => 'string', 'single' => true, ]); That ...
Mehdi Zaidi's user avatar
0 votes
0 answers
22 views

Transitioning a big blog to WEBP images

I have a Wordpress site with a LOT of posts that still get significant amount of traffic (10,000's of posts). The site is image heavy and uses <img> tags for inline Jpegs as featured and inline ...
gravy's user avatar
  • 157
0 votes
0 answers
31 views

How to add "rel=nofollow" for links in latest version of Wordpress?

In earlier versions of Wordpress, when editing a link, there are three options: Open in new tab Search engines should ignore this link (mark as nofollow)Learn more about marking a link as nofollow ...
William's user avatar
  • 103
0 votes
1 answer
22 views

WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped

Note: I am using https://wordpress.org/plugins/classic-editor/ with latest updated WordPress. I have a Blog at https://www.exeideas.com/ and I share code snippet here also that was working before ...
Muhammad Hassan's user avatar
0 votes
1 answer
98 views

Bullet List Indentation not showing up in the wordpress

In wordpress, I have written on article and in that I have bullet list to showcase but my indentation is greyed out, and not able to indent the list further as you can see in the sreenshots. I want to ...
ss-ss-v1's user avatar
0 votes
1 answer
190 views

How can I reset/remove background colour from a block

So my block has background colour. Let's say it's a paragraph block. I want to remove the background colour completely, but can't find any way in Wordpress' Editor UI. The only way I found was to ...
Томица Кораћ's user avatar
0 votes
1 answer
31 views

Customizing the Post/Page Editor in Classic Editor

I am creating custom styles for a client. While I could train her on how to apply those styles by adding code in the Text view, it would be easier if I could just create a dropdown of the styles, or ...
Nora McDougall-Collins's user avatar
0 votes
0 answers
55 views

How to translate widget titles in 2021 theme?

I am using the default wordpress theme 2021 and I want to translate all the user facing contents to a 2nd language. All has been OK other than the footer elements which are: Recent Comments Recent ...
Musa Haidari's user avatar
1 vote
0 answers
134 views

Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]

I spend a lot of time developing technical content that revolves around software and network engineering. I used to do some content creation and blogging on this topic as well as creating ...
ylluminate's user avatar
0 votes
1 answer
419 views

Adding a Media Button to the WordPress Content Editor

So i'm trying to add a button over the text editor which on pressed lets the user paste in a youtube link which is then covered in shortcode something like this [code]youtube.com[/code]. Following ...
Kevin's user avatar
  • 15
0 votes
1 answer
427 views

How do I access the contents of Wordpress Classic editor in admin area with JavaScript?

I am working on a small Wordpress plugin which uses JavaScript to add html tags with a css class to the visual text view in the Wordpress editor. I use the Classic Editor. According to Chrome ...
conpertura's user avatar
0 votes
0 answers
77 views

✓ Checkmark Character Encoding Issue In WordPress Editor

While writing a new blog post on my WordPress blog, I noticed that it is converting '✓' (checkmark) to '?' (question mark). I am using the classic editor (not the block one). I tried to enter the ✓ ...
Mac Ank's user avatar
0 votes
1 answer
522 views

Visual and Text tabs missing from Editor

I have two WordPress servers installed with an identical server and WordPress configurations (same WordPress version, same PHP version, same plugins and same theme). The point is that the Visual and ...
Pedro's user avatar
  • 1
0 votes
0 answers
63 views

How can I add a stylesheet to the Classic Editor page?

I want to make some style changes to the Classic Editor page itself -- not the place where you write the text of the post, but the main part of the page (such as the Categories block -- maybe I want ...
Jim Miller's user avatar
0 votes
1 answer
162 views

Use rich text editor in 'Edit Media', for attachment media description

I have the following in my functions.php: add_filter( 'wp_editor_settings', function( $settings ){ if( get_post_type() == 'attachment'){ $settings = [ 'wpautop' => true, '...
3x5's user avatar
  • 133
1 vote
0 answers
39 views

How to Add Custom Button to Text(HTML) Editor and NOT Visual Editor

I followed this tutorial which is adding a custom button into Visual Editor as it is supposed to. But this is not adding the button into the Text(HTML) Editor. Can you please let me know how I can ...
Behseini's user avatar
  • 525
2 votes
1 answer
311 views

Visual Editor Background

I have a WordPress site in which the background colour is black and the text is white. The site is fine, but it's a real pain trying to edit content in the visual editor as the background is white and ...
Antonio HBJ's user avatar
0 votes
1 answer
749 views

Automatically replace &nbsp with space

In my WooCommerce online store, I frequently copy and paste product description from the OEM webpage. This works well for the most part, however depending on the site, the spaces are sometimes encoded ...
Dandan's user avatar
  • 103
2 votes
1 answer
228 views

Adding image to visual editor popup for shortcode with wp.media and wp.mce: changing image duplicates shortcode

tl;dr: Why does using media manager popup within a TinyMCE popup cause duplications of shortcodes? Is it my code or just the way life is? [Spoiler: It was my code] I've written a small plugin to ...
Andy Macaulay-Brook's user avatar
0 votes
0 answers
225 views

Square brackets at the end of a line cause <br> line break to be skipped

Note: Titles are similar but this is a different issue than Square brackets make WordPress ignore newline/paragraph I'm using the classic editor in the latest version of WordPress. To have the visual ...
Chad Cloman's user avatar
0 votes
0 answers
134 views

How to make conditional statement in WpBakery (formarly Visual Composer)

I am building a new membership website with WordPress using WpBakery (formally visual composer). I created a heading text which I linked to my login page, everything works fine but the problem is that ...
Ruby's user avatar
  • 1
0 votes
1 answer
73 views

How to sync the style in the visual editor with the style of a child theme?

I have a wordpress site with twenty-twenty theme sightly modified with a child theme. The site's publically accessible surface is displayed correctly according to the modifications declared in the ...
user avatar
1 vote
2 answers
394 views

Tiny MCE-modifications (plugins) stopped working in WordPress 5.6

A while back I stumbled across this post from 2015, that showed how to add Tiny MCE-buttons. It has been working for more than a year. But after the latest WordPress update (to version 5.6) it stopped ...
Zeth's user avatar
  • 788
1 vote
1 answer
108 views

Why do I keep losing links when I switch to visual editor in Wordpress

I have this problem in a specific page of my wordpress website: when I switch from text editor to visual editor I immediately lose all my links (placed in a div element). I give you a detailed example ...
Matteo Farinella's user avatar
0 votes
2 answers
194 views

Why is wordpress suddenly stripping away all newline characters and how to disable this?

I've spent about 3 hours trying out various functions to figure out why the newline characters are being removed every time I save. How do I figure out why is wordpress suddenly stripping away newline ...
Mugen's user avatar
  • 135
2 votes
1 answer
2k views

Adding custom styles to dropdown in editor

is it possible to add a custom style to the dropdown in the classic WordPress editor, say a div with the class of "fancywords"?
Gusto's user avatar
  • 77
0 votes
0 answers
215 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 ...
Eugene Lavrinenkov's user avatar
0 votes
1 answer
357 views

Insert wrap span tag around contents of a link tag automatically

I've searched around a good bit last night and today and haven't been able to find just what I'm looking for here. Basically I'm trying to automate this process: When I click the link button inside ...
Jacob Johnson's user avatar
0 votes
1 answer
1k views

How to allow code like PHP, SQL, HTML to WPBakery Visual Composer?

I want to allow code inside a textarea to write code with PHP, SQL or HTML... What i want to do is create an element inside the Visual Composer where I can put some code to show it as i write it on ...
Met El Idrissi's user avatar
0 votes
1 answer
249 views

how can default_content filter tell if content will load in block editor or classic editor?

In short, I want to use the default_content filter to return slightly different content depending on if it will be used in the block editor or not (eg. the quicktags or tinymce editor) - is there any ...
Jesse Norell's user avatar
0 votes
0 answers
309 views

wp_editor in custom post type is not saving formatted text like bold, italic etc

My custom post type has 5 custom meta boxes which use wp_editor. Visually I can format the content but when saved, all the formatting is gone. For example I made a portion of my content bold, but ...
Subrata Sarkar's user avatar
1 vote
1 answer
339 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 ...
Osvald Laurits's user avatar
0 votes
2 answers
3k views

Icons are missing from Visual Editor

The Problem I've been grappling with this bug over several days now to no luck. When editing either a post or a page, all icons in the Visual Editor are missing: As you can see this, includes the ...
Hashim Aziz's user avatar
1 vote
0 answers
212 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 ...
Sarah Morrow's user avatar
0 votes
1 answer
307 views

How to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins?

Want to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins. How to do it?
Riya's user avatar
  • 3
1 vote
1 answer
4k 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 <...
Laura's user avatar
  • 11
0 votes
0 answers
26 views

Modifing an existing Custom Post Type doesn't work?

I have to update an existing CPT which needs to support editor it was $args = array( 'label' => __( 'annual reports', 'ledexpo2018' ), 'description' => ...
alex's user avatar
  • 1,122
0 votes
1 answer
505 views

VisualComposer/WPBakery Page Editor: Is any JS event triggered after the Edition pop-in is shown?

In the back-office, when we create a page, we can add sections and rows in which we can create elements. These elements are for example text boxes, images, buttons, and other Visual Composer mappings ...
JarsOfJam-Scheduler's user avatar
0 votes
1 answer
139 views

How do I prevent Wordpress from eating my code?

I'm writing a guide and putting code examples. If I use the visual editor the code indentation is lost. It will also take some code and strip it out. If I use the text editor I can't ever switch to ...
1.21 gigawatts's user avatar
0 votes
3 answers
2k views

How to adjust text’s width and put it at center of post (Visual) editor?

[Disclaimer: I'm not a developer of any sort, but willing to take the time. (Can do a bit of CSS, though.) Also, new to this forum.] I’m using Anders Norén’s Hemingway theme. I haven’t tried ...
myniuat's user avatar
0 votes
0 answers
21 views

Hide default values on VC editor

When I created custom fields on WPBakery (formerly Visual Composer) I have the option 'admin_label' and by default is false but the values always printing on editor. How to hide the default values ...
josotoru's user avatar
2 votes
2 answers
2k 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 ...
Bikash Gurung's user avatar
-1 votes
1 answer
22 views

Is there a visual editor specifically for page snippets/sections?

I am building a Wordpress/Woocommerce site, and developing a plugin for it. In the plugin I am including some PHP html templates and hooking them into Wordpress in various ways. Is there a way to ...
Kerry Randolph's user avatar
0 votes
1 answer
45 views

More HTML elements variety in visual editor

Our HTML based website uses a lot of formats for styling text / pages. We're now transitioning to Wordpress so the our employees can also create and edit pages, but it seems like the Wordpress editor ...
Adam Tal's user avatar
0 votes
0 answers
69 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,...
alex's user avatar
  • 1,122
3 votes
2 answers
3k 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 ...
BenB's user avatar
  • 745
0 votes
1 answer
27 views

WordPress visual editor internal link default https

I have a WordPress site running on https. When I insert a link to another page using the Visual Editor it defaults to http. Can i change this somewhere? The closes thing i could find is this: In ...
Pimmetje's user avatar
0 votes
0 answers
861 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 ...
cfx's user avatar
  • 1,431
0 votes
1 answer
991 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 = ...
GenesisBits's user avatar

1
2 3 4 5
7