Skip to content

Commands

Commands is a getter function and each command creates new transaciton.

this.editor.commands
.textColor('red')
.insertText('Hello world!')
.focus()
.scrollIntoView()
.exec();