I need four buttons for accesibility. Abbreviation, language, superscript, subscript.

Two of them are easy to create, the superscript and subscript:

<sup>|</sup>
<sub>|</sub>

The other two are hard, the abbreviation, that creates the code
<abbr title="Doctor">Dr.</abbr>
after fill the popup with the explanation field and with the Abbreviation above with the text selected.

And language, that creates the code
<span lang="fr">au revoir</span>
after select the language needed.

I am not able to code that buttons, it's a request to include it, so everybody can use it by default as they are buttons needed for accesibility.

Comments

itsme_ created an issue. See original summary.

ufku’s picture

Status: Active » Fixed

Example abbr button code with dialog.

js: E.tagDialog('abbr', [
  {name: 'html', title: 'Abbreviation'},
  {name: 'title', title: 'Description'}
], 'Add/edit abbreviation');

Language button with lang attribute provided as a select box with a default value.

js: E.tagDialog('span', [
  {name: 'html', title: 'Text'},
  {name: 'lang', title: 'Language', type: 'select', options: {en: 'English', fr: 'French'}, value: 'fr'}
], 'Language');
itsme_’s picture

Already added, works as expected!

Thanks for share the code.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.