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
..
2022-04-27 22:50:51 +02:00
2021-12-02 15:12:39 +01:00
2022-02-03 15:03:13 +01:00
2022-04-27 22:50:51 +02:00
2021-12-22 12:43:00 +01:00
2022-04-27 22:50:51 +02:00
2021-12-02 15:12:39 +01:00
2022-01-26 09:38:01 +01:00
2022-01-26 09:38:01 +01:00
2022-01-04 10:15:07 +01:00
2022-01-04 10:15:07 +01:00
2021-11-22 10:17:43 +01:00
2021-11-09 16:51:34 +01:00
2021-11-17 19:25:46 +01:00
2022-04-27 22:50:51 +02:00
2022-01-25 10:53:30 +01:00
2022-01-04 10:15:07 +01:00
2022-01-04 10:15:07 +01:00
2021-11-09 16:51:34 +01:00
2022-01-20 15:07:41 +01:00
2022-01-20 15:07:41 +01:00
2021-11-09 16:51:34 +01:00
2022-01-24 22:49:56 +01:00
2022-02-11 11:00:50 +01:00
2022-02-03 15:03:13 +01:00
2022-05-09 13:24:58 +02:00
2021-12-02 15:12:39 +01:00
2022-04-27 22:50:51 +02:00
2021-12-22 12:43:00 +01:00
2021-12-02 15:12:39 +01:00
2022-02-03 15:03:13 +01:00
2021-12-02 15:12:39 +01:00
2021-12-02 15:12:39 +01:00
2021-12-02 15:12:39 +01:00
2022-04-29 10:35:06 +02:00
2021-11-09 16:51:34 +01:00
2021-11-09 16:51:34 +01:00
2021-11-09 16:51:34 +01:00
2022-04-27 22:50:51 +02:00
2021-12-22 12:43:00 +01:00
2021-11-09 16:51:34 +01:00
2021-12-02 15:12:39 +01:00
2021-12-02 15:12:39 +01:00
2022-02-07 09:10:11 +01:00
2022-02-03 15:03:13 +01:00
2022-04-27 22:50:51 +02:00
2022-04-27 22:50:51 +02:00
2022-04-27 22:50:51 +02:00
2022-04-29 12:47:11 +02:00
2022-04-27 22:50:51 +02:00
2022-04-27 22:50:51 +02:00