Desktop: Fixes #4337: Make sure note is automatically saved when format is set via keyboard shortcut in Rich Text editor

pull/4405/head
Laurent Cozic 2021-01-21 18:33:33 +00:00
parent 2d4ae4d8de
commit fa9f5fd458
1 changed files with 2 additions and 1 deletions

View File

@ -960,11 +960,12 @@ const TinyMCE = (props: NoteBodyEditorProps, ref: any) => {
//
// Any maybe others, so to catch them all we only check the prefix
const changeCommands = ['mceBlockQuote', 'ToggleJoplinChecklistItem'];
const changeCommands = ['mceBlockQuote', 'ToggleJoplinChecklistItem', 'Bold', 'Italic', 'Underline', 'Paragraph'];
if (
changeCommands.includes(c) ||
c.indexOf('Insert') === 0 ||
c.indexOf('Header') === 0 ||
c.indexOf('mceToggle') === 0 ||
c.indexOf('mceInsert') === 0 ||
c.indexOf('mceTable') === 0