mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Fixes #4337: Make sure note is automatically saved when format is set via keyboard shortcut in Rich Text editor
This commit is contained in:
parent
2d4ae4d8de
commit
fa9f5fd458
@ -960,11 +960,12 @@ const TinyMCE = (props: NoteBodyEditorProps, ref: any) => {
|
|||||||
//
|
//
|
||||||
// Any maybe others, so to catch them all we only check the prefix
|
// 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 (
|
if (
|
||||||
changeCommands.includes(c) ||
|
changeCommands.includes(c) ||
|
||||||
c.indexOf('Insert') === 0 ||
|
c.indexOf('Insert') === 0 ||
|
||||||
|
c.indexOf('Header') === 0 ||
|
||||||
c.indexOf('mceToggle') === 0 ||
|
c.indexOf('mceToggle') === 0 ||
|
||||||
c.indexOf('mceInsert') === 0 ||
|
c.indexOf('mceInsert') === 0 ||
|
||||||
c.indexOf('mceTable') === 0
|
c.indexOf('mceTable') === 0
|
||||||
|
Loading…
Reference in New Issue
Block a user