add extension class

This commit is contained in:
Philipp Kühn
2019-12-16 23:20:05 +01:00
parent 6f1aedb2b2
commit 3b291c3a3c
7 changed files with 129 additions and 9 deletions

View File

@@ -41,10 +41,24 @@ export default {
// console.log(html)
// next()
// })
.focus('start')
.insertText('<p>start</p>')
.focus('end')
.insertHTML('<p>end</p>')
// .registerCommand('insertHello', async (next, editor) => {
// await editor.insertHTML('<strong>HELLO</strong>')
// next()
// })
// .registerCommand('insertHello', (next, editor) => {
// editor
// .focus('start')
// .insertHTML('<strong>HELLO</strong>')
// next()
// })
// .focus('start')
// .insertHello()
// .insertText('eins')
// .insertText('zwei')
// .insertText('drei')
// .insertHello()
// .focus('end')
// .insertHTML('<p>end</p>')
}
}
</script>