update commands experiment

This commit is contained in:
Philipp Kühn
2021-03-03 20:05:34 +01:00
parent 053a266a31
commit a2671dbb93
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ export default Extension.create({
defaultOptions: {
suggestion: {
char: '/',
startOfLine: true,
startOfLine: false,
command: ({ editor, range, props }) => {
props.command({ editor, range })
},

View File

@@ -117,7 +117,9 @@ export default {
}),
],
content: `
<p>Text</p>
<p>Type a slash</p>
<p></p>
<p></p>
`,
})
},