docs: update content

This commit is contained in:
Hans Pagel
2021-05-28 11:45:52 +02:00
parent c17c473219
commit ee9ff28d31
2 changed files with 11 additions and 0 deletions

View File

@@ -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()
``` ```

View File

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