mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-22 08:07:50 +08:00
a9e8f48b34
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. |
||
---|---|---|
.. | ||
core | ||
extension-blockquote | ||
extension-bold | ||
extension-bubble-menu | ||
extension-bullet-list | ||
extension-character-count | ||
extension-code | ||
extension-code-block | ||
extension-code-block-lowlight | ||
extension-collaboration | ||
extension-collaboration-cursor | ||
extension-color | ||
extension-document | ||
extension-dropcursor | ||
extension-floating-menu | ||
extension-focus | ||
extension-font-family | ||
extension-gapcursor | ||
extension-hard-break | ||
extension-heading | ||
extension-highlight | ||
extension-history | ||
extension-horizontal-rule | ||
extension-image | ||
extension-italic | ||
extension-link | ||
extension-list-item | ||
extension-mention | ||
extension-ordered-list | ||
extension-paragraph | ||
extension-placeholder | ||
extension-strike | ||
extension-subscript | ||
extension-superscript | ||
extension-table | ||
extension-table-cell | ||
extension-table-header | ||
extension-table-row | ||
extension-task-item | ||
extension-task-list | ||
extension-text | ||
extension-text-align | ||
extension-text-style | ||
extension-typography | ||
extension-underline | ||
html | ||
react | ||
starter-kit | ||
suggestion | ||
vue-2 | ||
vue-3 |