1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-29 21:21:15 +02:00

Plugins: Rename command "editorSetText" to "editor.setText"

This commit is contained in:
Laurent Cozic 2020-11-14 10:57:09 +00:00
parent 19a8b6c285
commit 6463af0c31
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ const declarations: CommandDeclaration[] = [
name: 'replaceSelection', name: 'replaceSelection',
}, },
{ {
name: 'editorSetText', name: 'editor.setText',
}, },
]; ];

View File

@ -40,7 +40,7 @@ function editorCommandRuntime(declaration: CommandDeclaration, editorRef: any, s
type: ScrollOptionTypes.Hash, type: ScrollOptionTypes.Hash,
value: args[0], value: args[0],
}); });
} else if (declaration.name === 'editorSetText') { } else if (declaration.name === 'editor.setText') {
setFormNote((prev: FormNote) => { setFormNote((prev: FormNote) => {
return { ...prev, body: args[0] }; return { ...prev, body: args[0] };
}); });