tiptap/packages/extension-link
Ken van der Eerden a9e8f48b34 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.
2022-05-09 13:24:58 +02:00
..
src Allow class attribute through setLink() 2022-05-09 13:24:58 +02:00
CHANGELOG.md Publish 2022-04-27 22:50:51 +02:00
package.json Publish 2022-04-27 22:50:51 +02:00
README.md docs: fix typo (#1339) 2021-05-18 18:36:18 +02:00

@tiptap/extension-link

Version Downloads License Sponsor

Introduction

tiptap is a headless wrapper around ProseMirror a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.

Official Documentation

Documentation can be found on the tiptap website.

License

tiptap is open sourced software licensed under the MIT license.