Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Ferrari 9 posts 79 karma points
    Apr 26, 2017 @ 21:44
    Sebastian Ferrari
    0

    Hi All,

    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,

    Sebastian

  • Dennis Adolfi 1045 posts 6176 karma points MVP c-trib
    May 11, 2017 @ 10:52
    Dennis Adolfi
    102

    Hi Sebastian.

    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+)

    enter image description here

    As you see, a tags are not allowed to have arial-label.

    Now, add this:

    enter image description here

    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:

    enter image description here

    Hope this was helpful.

    Best of luck to you and have a great day!

  • Sebastian Ferrari 9 posts 79 karma points
    May 11, 2017 @ 14:58
    Sebastian Ferrari
    1

    Hi Dennis,

    Tremendous response! This is helping me a lot.

    Thanks for your time and have a great day you too!

    Sebastian

  • Dennis Adolfi 1045 posts 6176 karma points MVP c-trib
    May 11, 2017 @ 15:30
    Dennis Adolfi
    0

    Glad you liked it! Did it work out for you?

  • Sebastian Ferrari 9 posts 79 karma points
    May 11, 2017 @ 15:41
    Sebastian Ferrari
    1

    Yes, perfectly, thanks!

  • Dennis Adolfi 1045 posts 6176 karma points MVP c-trib
    May 11, 2017 @ 20:33
    Dennis Adolfi
    0

    I'm glad to hear that. :)

    Take care!

Please Sign in or register to post replies

Write your reply to:

Draft