This commit is contained in:
Philipp Kühn
2021-05-28 12:14:14 +02:00
4 changed files with 14 additions and 1 deletions

View File

@@ -62,6 +62,8 @@ declare module '@tiptap/core' {
export const CollaborationAnnotation = Extension.create({
name: 'annotation',
priority: 1000,
defaultOptions: <AnnotationOptions>{
HTMLAttributes: {
class: 'annotation',

View File

@@ -17,4 +17,13 @@ editor.commands.extendMarkRange('link')
// Expand selection to link marks with specific attributes
editor.commands.extendMarkRange('link', { href: 'https://google.com' })
// Expand selection to link mark and update attributes
editor
.chain()
.extendMarkRange('link')
.updateAttributes('link', {
href: 'https://duckduckgo.com'
})
.run()
```

View File

@@ -1,3 +1,5 @@
# joinForward
<ContentMissing />
https://prosemirror.net/docs/ref/#commands.joinForward

View File

@@ -13,7 +13,7 @@
v-if="$route.name === 'home'"
color="yellow"
>
Get early access to our Node.js collaboration backend
Get early access to our Node.js realtime backend
</banner-message>
<div class="app__navigation">