Jump to content

Title attribute for anchors in TinyMCE


totoff
 Share

Recommended Posts

Hi, Totoff.

You have to add title to valid attributes of <a> tag.

You can find this option on the "input" tab of your text field -> TinyMCE configuration -> valid_elements.

Find <a> attribute and add title to it: a[href|target|name|title].

  • Like 2
Link to comment
Share on other sites

TinyMCE can be maddening sometimes in this respect, as I've tried adding allowed attributes only to have TinyMCE refuse them for some reason or another. It's almost as if there are some other rules at play overriding user defined ones. However, if you set TinyMCE to allow everything then it usually works. The way you do that is to set your valid_elements to this:

*[*]

Not saying that's a good solution, but it works in a pinch and sometimes it's the only way I can get TinyMCE to cooperate. 

  • Like 2
Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...