💥 Breaking Change
- The ACE source editor (
sourceEditor: 'ace') and js-beautify (beautifyHTML: true) CDN scripts are no longer downloaded when the editor starts in WYSIWYG mode. They are fetched the first time the source (or split) view is opened, so a page that only ever shows WYSIWYG no longer loads ~500 KiB of third-party JavaScript. ConsequentlysourceEditorReadyfires when the source view is first opened, not right afternew Jodit(), andwindow.aceis not defined until then. Code that relied on either has to open the source mode first (or usedefaultMode: Jodit.MODE_SOURCE). - ARIA roles:
UIGroupcontainers default torole="group"instead ofrole="list"(toolbar button groups created byUIListkeeprole="list");ToolbarContentitems userole="listitem"instead of the invalidrole="content"and no longer carryaria-pressed. Selectors relying on[role="list"]for generic groups or on[role="content"]have to be updated.
💅 Polish
- Accessibility: an icon-only button without a tooltip gets an
aria-labelfrom its name, the native<input type="file">of the upload button is labelled, and a dialog opened with a text title gets anaria-label. Together with the role changes this clears the Lighthousearia-roles,aria-allowed-attr,aria-required-children,button-name,labelandaria-dialog-nameaudits for the editor and the file browser.