Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

Remove option to add title attributes to links in TinyMCE

Vote:
 

Hi,

According to our UX designer the "title" attribute is bad for accessibility on links.
Here's more information about titles and accessibility: https://a11yproject.com/posts/title-attributes/

The title attribute can be added when inserting a link in TinyMCE.

We would like to remove this option to make it easiser for web editors to add accessible html.
I hope this makes sense.

Thank you

#216571
Feb 10, 2020 10:10
Vote:
 

This is true, title is bad on links, on all tag except one, title should only exists on iframe-tag. For screenreaders.

#216982
Feb 11, 2020 20:53
Vote:
 

Here's a blog post about hiding the Title property in the built-in Link dialog via an EditorDescriptor: https://world.episerver.com/blogs/Linda-Mohacsi/Dates/2017/10/hiding-properties-in-the-built-in-link-dialog/

Reposting the code in case the blog ever disappears:

    [EditorDescriptorRegistration(
        TargetType = typeof(LinkModel),
        EditorDescriptorBehavior = EditorDescriptorBehavior.ExtendBase)]
    public class EpiLinkEditorDescriptor : EditorDescriptor
    {
        public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
        {
            base.ModifyMetadata(metadata, attributes);
            foreach (var prop in metadata.Properties)
            {
                if (prop.PropertyName == "Title")
                {
                    prop.ShowForEdit = false;
                }
            }
        }
    }
#218425
Mar 12, 2020 15:08
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.