This commit is contained in:
Philipp Kühn
2020-11-13 16:44:26 +01:00
37 changed files with 469 additions and 51 deletions

View File

@@ -51,6 +51,9 @@ const Link = createMark({
addCommands() {
return {
/**
* Toggle or update a link mark
*/
link: (options: { href?: string, target?: string } = {}): Command => ({ commands }) => {
if (!options.href) {
return commands.removeMark('link')