Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix codeblock command

ammarahm-ed05b368f6b6ae
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js b/apps/mobile/src/views/Editor/tiny/toolbar/commands.js
index b947785ce..841863e20 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/commands.js
@@ -74,7 +74,7 @@ export const execCommands = {
})();`,
- cl: `tinymce.activeEditor.execCommand('InsertCheckList')`,
+ cl: `tinymce.activeEditor.execCommand('insertCheckList')`,
image: async () => {
if (editing.isFocused) {
tiny.call(EditorWebView, tiny.blur);
@@ -124,7 +124,7 @@ export const execCommands = {
},
video: `tinymce.activeEditor.execCommand('mceMedia')`,
pre: `
- tinymce.activeEditor.execCommand('CodeBlock')
+ tinymce.activeEditor.execCommand('mceInsertCodeBlock')
`,
tableprops: "tinymce.activeEditor.execCommand('mceTableProps');",
tabledelete: "tinymce.activeEditor.execCommand('mceTableDelete');",