How to sanitize input from MCE in ASP.NET?
Is there a utility/function in C# to sanitize the source code of tinyMCE rich text. I would like to remove dangerous tags but like to whitelist safe html tags.
Is there a utility/function in C# to sanitize the source code of tinyMCE rich text. I would like to remove dangerous tags but like to whitelist safe html tags.
I have the tinymce -control as a WYSIWYG-Editior in my asp.net page.
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]
Using tinyMCE as wp_editor in a custom post type metabox create an alert when I try to submit or If I want to change location
It is an old site made before the new block editor arrives. Now it’s running WP 5.0.11, and I do not want to make an upgrade right now for various reasons.
I noticed in one of the updates since wordpress 5 that when I paste in a link to another site it shows the page title as the hyperlink (usually “Home”) instead of the URL. I don’t want that, I want the actual URL as is.
since WordPress seems to be moving towards a long due jQuery update, I began testing a few of my plugins (they’re not published, just stuff I use for a few clients’ websites) with the “Test jQuery Updates”. Everything went smoothly until yesterday, when I ran into the following issue. I have this simple plugin that adds a few buttons to TinyMCE (yes, the theme I made for that client uses Classic Editor) for them to easily add shortcodes and pre-composed HTML snippets to their posts and pages. The code is pretty standard: first the buttons are registered via a function hooked to the ‘mce_buttons’ filter hook, then the scripts with the jQuery code for the buttons are loaded via another function hooked to ‘mce_external_plugins’. When I run this with the default WP 5.5 jQuery the button shows up in TinyMCE, while if I activate jQuery 3.5.1 (both with and without jQuery migrate), nothing appears and the worse part is that I don’t get any errors or warnings in the browser console, so I don’t have the faintest idea about what went wrong.
I use TinyMCE advanced on my WordPress website. My logged-in users have the ability to fill forms with WYSIWYG fields. I don’t understand why some styles are not applied on those fields while it applied well on the admin area. Fields are set in up with ACF or formidable forms. In both case I have the same issue.
So WP 4.2 introduced emojis (smileys) that basically adds JS and other junk all over your pages. Something some people may find shocking. How does one completely erase all instances of this?
How is it possible to add a custom button to the visual editor TinyMCE, Version 4?