I'm trying to figure out how I can include the title attribute for an image selected by an editor within the TinyMCE rich-text editor? The alt text works as expected, but I would expect it to be possible to either set the title text separately, or use the alt text as a title as well?
Don't suppose any one has any tips for this one? I can't seem to find a way around it that isn't developing a macro to use rather than the media picker?
then open your /Config/ClientDependancy.config file and increase the version attribute of the clientDependency node by 1 and save it.
Now refresh your backend browser window, go to the page you want to add the image to and try again. This time you should see the title attribute added to the img tag.
N.B. When you update Umbraco this fix will get overwritten so make a note somewhere when upgrading to add this back in until it or another fix gets implemented in the core.
Include image title in TinyMCE rich-text editor
Hi,
I'm trying to figure out how I can include the title attribute for an image selected by an editor within the TinyMCE rich-text editor? The alt text works as expected, but I would expect it to be possible to either set the title text separately, or use the alt text as a title as well?
Don't suppose any one has any tips for this one? I can't seem to find a way around it that isn't developing a macro to use rather than the media picker?
Hi Ed,
Don't know if you still need help with this but here's how I solved it in v 7.5.4:
Open up the file /Umbraco/Js/umbraco.services.js and change line 6711 from:
to:
then open your /Config/ClientDependancy.config file and increase the version attribute of the clientDependency node by 1 and save it.
Now refresh your backend browser window, go to the page you want to add the image to and try again. This time you should see the title attribute added to the img tag.
N.B. When you update Umbraco this fix will get overwritten so make a note somewhere when upgrading to add this back in until it or another fix gets implemented in the core.
Hope this helps.
Cheers,
Al
Hi Al,
Thanks for taking the time to respond! I never did get around to resolving this one, but it's still on my mind. This looks to do the job nicely!
Ed
No problem, Ed.
It's the best workaround I've found. Shame it's a bit of a hack though and will get overwritten on an upgrade if not remembered.
Anyway, I hope this scratches your Umbraco itch. Merry Christmas!
Al
is working on a reply...