Online Consultant

Tips
Get tips on here for your website, related to all UWB software versions
Subscribe to new posts
Post Icon
TinyMCE Removing <a id="style" class="anchor"></a> - Why?

I ran into a weird issue with TinyMCE:

I added this anchor to my content:

Code: Please login/register for access

…but TinyMCE removes Code: Please login/register for access automatically. Strangely, if I change the id to something like Code: Please login/register for access:

Code: Please login/register for access

it stays perfectly fine.

Why does this happen?

It turns out that Code: Please login/register for access is a reserved word in HTML and CSS. Browsers treat Code: Please login/register for access as a property (Code: Please login/register for access), and TinyMCE’s cleanup routines try to prevent conflicts. Since your anchor is empty, TinyMCE thinks it might cause issues and removes it.

How to fix it: Avoid reserved words for ids - rename the anchor id to something like Code: Please login/register for access or Code: Please login/register for access, or Code: Please login/register for access like I did.

Summary:
TinyMCE removes Code: Please login/register for access because Code: Please login/register for access is a reserved word. Using a different id prevents this.

Official UWB Support Team! Contact us directly here!

Similar Topics
 
Topic / Topic Starter
Rating
Last Post
Replies
Views
Forum
Post Icon
-
Post Icon
UltimateWB software is great for any type of website!
10 years ago
0
73216
Post Icon
-
Post Icon
New custom coding addition for UltimateWB Full 7.71
3 years ago
0
45240
Post Icon
-
Post Icon
Re: Classifieds app options, capabilities, and design options
9 years ago
1
69676
Post Icon
-
Post Icon
Questions on SSL Answered!
10 years ago
0
45919
Post Icon
5.00 Rating, 1 Review5.00 Rating, 1 Review5.00 Rating, 1 Review5.00 Rating, 1 Review5.00 Rating, 1 Review
Post Icon
Re: Embed YouTube videos on website, videos not showing now
8 years ago
4
56654
Report forum post by:
Report a concern
Comments: