mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
[BUG] Fix Ctrl+Enter on editor
- Add event listener for the `ce-quick-submit` event, which will be
triggered if `Ctrl+Enter` is pressed on a text area.
- Regression of 5cc0801de9
- Resolves #2762
This commit is contained in:
parent
5194bd15ef
commit
9db76036bb
1 changed files with 3 additions and 0 deletions
|
@ -468,6 +468,9 @@ async function onEditContent(event) {
|
|||
e.preventDefault();
|
||||
saveAndRefresh(dz);
|
||||
});
|
||||
$editContentZone.on('ce-quick-submit', () => {
|
||||
$editContentZone.find('.save.button').trigger('click');
|
||||
});
|
||||
} else {
|
||||
comboMarkdownEditor = getComboMarkdownEditor($editContentZone.find('.combo-markdown-editor'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue