Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Remove option to add title attributes to links in TinyMCE



According to our UX designer the "title" attribute is bad for accessibility on links.
Here's more information about titles and accessibility:

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

Feb 10, 2020 10:10

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

Feb 11, 2020 20:53

Here's a blog post about hiding the Title property in the built-in Link dialog via an EditorDescriptor:

Reposting the code in case the blog ever disappears:

        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;
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.