Questions tagged [wysiwyg]
WYSIWYG is an acronym for "What You See Is What You Get". In computing, a WYSIWYG editor is a system in which content (text and graphics) displayed onscreen during editing appears in a form closely corresponding to its appearance when printed or displayed as a finished product, which might be a printed document, web page, or slide presentation.
159 questions
0 votes
0 answers
221 views
How to add button to WYSIWYG to insert shortcode with params (filled in system popup)?
It seems to me that there must be a solution, but I haven't found it. During the theme development process, we create many shortcodes for inserting unusual html layouts into the text. It would be ...
0 votes
1 answer
65 views
How to enable <br> on custom shortcodes
I have created a shortcode that displays a table in WordPress: function table_data($atts, $content = null) { $defaults = shortcode_atts(array( 'data' => 'th:data1,td:data2,td:data3' ...
0 votes
1 answer
1k views
TinyMCE's "Clear Formatting" button doesn't remove lists and headings
Pressing the "Clear Formatting" toolbar button removes styles like bold and italics just fine, but it leaves lists and headings (h1, h2, etc.) as-is. Is there a way to include all elements ...
0 votes
0 answers
130 views
Uncaught TypeError: switchEditors.switchto is not a function
I have the following line of code: switchEditors.switchto(ctmce[0]); which gives this error: Uncaught TypeError: switchEditors.switchto is not a function Searching around I found out that, due to ...
1 vote
1 answer
3k views
Remove headings option from Wysiwyg editor from ACF in a certain custom post type
I want to remove the headings options from Wysiwyg in a custom field that is set ix certain custom post type. Is there a way to archive it?
0 votes
0 answers
258 views
Images are broken in Wysiwyg Editor - ACF backend
I work in the local environment WAMP, and images are visible on the frontend. When I enter to the backend Wysiwyg Editor they are broken Links look like that <img class="img-responsive" src="wp-...
0 votes
2 answers
1k views
Adding custom classes to elements via the WYSIWYG
I'd like to give my client the ability to add custom classes to elements via the WYSIWYG editor. For example, giving a link anchor tag a cta class so they can specify this link should be a call to ...
0 votes
1 answer
1k views
When creating a blog post through the WYSIWYG editor, text is not being wrapped in <p> tags correctly when starting with a link
When creating a new blog post, and the first item is a link follewed by text like this: <a>Some link</a> some text When this is rendered into HTML The tags get placed at the end of the ...
1 vote
1 answer
5k 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 <...
0 votes
1 answer
87 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 ...
1 vote
2 answers
434 views
Keep WYSIWYG on Blog Page
I want to use the WYWISWYG on my blog page for an introduction text, but can't seem to bring back the WYSIWYG Editor on the page the page I defined as my blog posts page. Is there any way to force WP ...
0 votes
0 answers
173 views
Modify oembed code conditionally
My users have sprung a requirement on me that I am having some difficulty figuring out. I've tied myself up in knots trying to unravel the the logic needed. The original spec of this website I am ...
0 votes
1 answer
4k views
Extract links from content
I'm looking for a solution to only display the links inside a string (my wysiwyg content) on my single page. First of all extract all my links, and replace each links content by the links title ...
1 vote
0 answers
417 views
How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
I am using the WYSIWYG editor as a custom field using ACF plugin to insert a custom table in the field. As a data, the table needed is simply the HTML Markup of it only, only attributes specific to ...
1 vote
0 answers
926 views
ACF Wysiwyg Editor Image srcset for responsive images [closed]
I cannot find a way to generate srcset for images added inside Wysiwyg Editor field of Advanced Custom Field (ACF) plugin. Obviously, i know how to generate WordPress image srcset using: ...