Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.1 KB

File metadata and controls

33 lines (24 loc) · 1.1 KB

iframe_aria_text

This option is used to customize the title attribute on the {productname} iframe element. For example:

<iframe title="Rich Text Area. Press ALT-0 for help."></iframe>

The title attribute is read by screen-readers to help users identify the editor. This option only applies to {productname} classic (iframe) mode and has no effect on inline editors.

Type: String

Default value: 'Rich Text Area. Press ALT-0 for help.'

Example: using iframe_aria_text

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  iframe_aria_text: 'Text Editor'
});
Note

The iframe_aria_text option is applied differently depending on the browser to ensure consistent screen reader announcements:

  • Firefox: The title attribute is set on the iframe element. The aria-label on the body is not set.

  • Other browsers: The aria-label is set on the body inside the iframe. The title is not set on the iframe.