This is a simple plugin for TinyMCE that allows to insert <abbr>
tags from the editor tooolbar.
The <abbr>
tag is a valid HTML5 element that allows to insert definitions of acronyms or abreviations. It is one of the techniques that can be used in order to conform with WCAG 3.1.4 (AAA).
- Insert
<abbr>
tag and content - Select text and wrap it within an
<abbr>
tag - Single click to autoselect existing
<abbr>
tags - Edit existing
<abbr>
tags - Remove existing
<abbr>
tags without deleting its content - English and French localizations only
- TinyMCE 4
- Umbraco 8
- Modern browsers
- Copy the abbr/ folder to tinymce/plugins/
- Add the required configuration, depending on your installation type.
tinymce.init({
...
plugins: 'abbr'
extended_valid_elements : 'abbr[title|lang]'
});
In Umbraco, you rather want to edit tinyMceConfig.config:
<tinymceConfig>
<commands>
...
<!-- Add the button in datatypes options -->
<command alias="abbr" name="Abbreviation" mode="Selection" />
</commands>
<plugins>
...
<!-- Import the plugin in the editor -->
<plugin>abbr</plugin>
</plugins>
<validElements>
<!-- abbr tags will be stripped if you don't add this to this list -->
abbr[title|lang]
</validElements>
...
</tinymceConfig>
You will then have to configure an RTE datatype and check the Abbreviation option.