Jump to content

Recommended Posts

Posted

hi all,

just realized that links created with tinymce doesn't have a title attribute. any known workaround how to get it?

thanks

Posted

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
Posted

slkwrm,

Thx for the tip. Just tried this in PW 2.3 stable. it doesn't work. The attribute doesn't show up. I cleared my cache as well.

Posted

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
  • 7 months later...
Posted

I just added this to the valid attributes on a 2.3 stable install and it is saving the title attribute just fine + it is showing up in the source.

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
×
×
  • Create New...