diff --git a/tests/manual/linkdecorator.md b/tests/manual/linkdecorator.md index 423d8f7..310854a 100644 --- a/tests/manual/linkdecorator.md +++ b/tests/manual/linkdecorator.md @@ -1,19 +1,21 @@ ## Link decorators ### Manual decorators (window.editors.manualDecorators): + 1. Should be available for every link. -2. Should apply changes after accepting changes. -3. There should be available 3 manual decorators: - * Open in new window +2. Should be applied to the content only when "Save" was clicked. +3. There should be 3 manual decorators available: + * Open in new a new tab * Downloadable * Gallery link -4. State of buttons should reflect state of currently selected link. -5. Switch buttons should be focused (with tab key) after input. Save and cancel buttons should be focused at the end +4. State of the decorator switches should reflect the model of the currently selected link. +5. Switch buttons should be focusable (with the tab key), after the URL input. The "save" and "cancel" buttons should be focused last. ### Automatic decorators (window.editors.automaticDecorators). -1. There should be turned on default automatic decorator, which adds `target="_blank"` and `rel="noopener noreferrer"` attributes to all external links (links started with `http://`, `https://` or `//`); -2. There should not be any changes in model or view of the editors. -3. Additional data should be added during downcast ( you need to run `window.editors.automaticDecorators.getData()` to see how it works ). -4. There are 2 additional decorators: - * phone, which detects all links started with `tel:` and adds `phone` class to such link - * internal, which adds `internal` class to all links started with `#` + +1. There should be a default automatic decorator turned on, which adds `target="_blank"` and `rel="noopener noreferrer"` attributes to all external links (links starting with `http://`, `https://` or `//`). +2. There should be no changes to the model or the view of the editors. +3. Decorator data should be added during downcast (run `window.editors.automaticDecorators.getData()` to see how it works). +4. There are 2 additional decorators in this editor: + * phone, which detects all links starting with `tel:` and adds the `phone` CSS class to such link, + * internal, which adds the `internal` CSS class to all links starting with `#`.