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

@@ -55,6 +55,9 @@ const Image = createNode({
addCommands() {
return {
/**
* Add an image
*/
image: (options: { src: string, alt?: string, title?: string }): Command => ({ tr }) => {
const { selection } = tr
const node = this.type.create(options)