L84
L84

Reputation: 46308

What is _mce_href?

I was looking at some code on a website and I saw the following code for a link:

<a href="#" _mce_href="#">Link Text</a>

What is _mce_href?

Is there a purpose for it?

Upvotes: 4

Views: 6826

Answers (2)

user2727841
user2727841

Reputation: 725

This attribute was used in tiny mce. Most of the time developers creates its own attribute(s) to process the tags or data in user define attributes, you can also see in the jquery plugins at run time it add styling or add attributes, you can also create your own attributes, its not a big deal. Well Its not a valid HTML attribute.

Upvotes: 1

Mr. Alien
Mr. Alien

Reputation: 157334

That's not a valid HTML attribute, it was kind of bug in older versions of Tiny MCE editor, though, using data- prefix before that attribute can make that custom attribute valid as of HTML5.

Some Reference

Upvotes: 5

Related Questions