mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
Merge branch 'main' of https://github.com/ueberdosis/tiptap
This commit is contained in:
commit
338a752d8b
@ -62,6 +62,8 @@ declare module '@tiptap/core' {
|
||||
export const CollaborationAnnotation = Extension.create({
|
||||
name: 'annotation',
|
||||
|
||||
priority: 1000,
|
||||
|
||||
defaultOptions: <AnnotationOptions>{
|
||||
HTMLAttributes: {
|
||||
class: 'annotation',
|
||||
|
@ -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()
|
||||
```
|
||||
|
@ -1,3 +1,5 @@
|
||||
# joinForward
|
||||
|
||||
<ContentMissing />
|
||||
|
||||
https://prosemirror.net/docs/ref/#commands.joinForward
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user