Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow class attribute through setLink()
While you can set a default value for the Link extensions class attribute using ```javascript Link.configure({ HTMLAttributes: { class: 'my-custom-class', }, }) ``` It is currently not possible to dynamically set the class attribute when calling setLink() e.g. ```javascript this.editor.chain().focus().extendMarkRange('link').setLink({href: url, class: 'this class should be added'}).run(); ``` This change allows for that by default, without needing to extend the Link extension.
- Loading branch information