Merge branch 'main' of https://github.com/ueberdosis/tiptap
This commit is contained in:
@@ -62,6 +62,8 @@ declare module '@tiptap/core' {
|
|||||||
export const CollaborationAnnotation = Extension.create({
|
export const CollaborationAnnotation = Extension.create({
|
||||||
name: 'annotation',
|
name: 'annotation',
|
||||||
|
|
||||||
|
priority: 1000,
|
||||||
|
|
||||||
defaultOptions: <AnnotationOptions>{
|
defaultOptions: <AnnotationOptions>{
|
||||||
HTMLAttributes: {
|
HTMLAttributes: {
|
||||||
class: 'annotation',
|
class: 'annotation',
|
||||||
|
|||||||
@@ -17,4 +17,13 @@ editor.commands.extendMarkRange('link')
|
|||||||
|
|
||||||
// Expand selection to link marks with specific attributes
|
// Expand selection to link marks with specific attributes
|
||||||
editor.commands.extendMarkRange('link', { href: 'https://google.com' })
|
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()
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
# joinForward
|
# joinForward
|
||||||
|
|
||||||
<ContentMissing />
|
<ContentMissing />
|
||||||
|
|
||||||
|
https://prosemirror.net/docs/ref/#commands.joinForward
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
v-if="$route.name === 'home'"
|
v-if="$route.name === 'home'"
|
||||||
color="yellow"
|
color="yellow"
|
||||||
>
|
>
|
||||||
Get early access to our Node.js collaboration backend →
|
Get early access to our Node.js realtime backend →
|
||||||
</banner-message>
|
</banner-message>
|
||||||
|
|
||||||
<div class="app__navigation">
|
<div class="app__navigation">
|
||||||
|
|||||||
Reference in New Issue
Block a user