mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 19:04:00 +01:00
Merge pull request '[BUG] Fix Ctrl+Enter on editor' (#2810) from gusted/forgejo-ctrlenter-editor into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2810 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
a140d4b90d
1 changed files with 3 additions and 0 deletions
|
@ -468,6 +468,9 @@ async function onEditContent(event) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
saveAndRefresh(dz);
|
saveAndRefresh(dz);
|
||||||
});
|
});
|
||||||
|
$editContentZone.on('ce-quick-submit', () => {
|
||||||
|
$editContentZone.find('.save.button').trigger('click');
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
comboMarkdownEditor = getComboMarkdownEditor($editContentZone.find('.combo-markdown-editor'));
|
comboMarkdownEditor = getComboMarkdownEditor($editContentZone.find('.combo-markdown-editor'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue