Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have an strange behavior with RTE and I don't know if this is the expected one.
I'm trying to save this
<a href="tel:555-5555-555" aria-label="Phone Number">555-5555-555</a>
in RTE Source Code popup, but when I press OK in popup dialog and I open again the source code popup I see that RTE is not saving "aria-*" attributes.
Why is this happening?
Thanks in advance,
Late reply, but here goes:
The reason the RTE is removing the arial-label attribute is because this attribute is not a valid attribute for a tags by default in the tinyMceConfig.config file. It´s easy however to add as an validElement.
Look in your /Config/tinyMceConfig.config file. Look for a row that looks like this: (Probably around Line: 240+)
As you see, a tags are not allowed to have arial-label.
Now, add this:
This should do it. However, the RTE is usually heavily cached, so you might need to Bump your client dependency version number for the changes to appear. See animation:
Hope this was helpful.
Best of luck to you and have a great day!
Tremendous response! This is helping me a lot.
Thanks for your time and have a great day you too!
Glad you liked it! Did it work out for you?
Yes, perfectly, thanks!
I'm glad to hear that. :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted