mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
- Fixed mouse clicking on elements outside the code block
This commit is contained in:
parent
640a6693d2
commit
f4d86ef2fd
@ -66,15 +66,8 @@ humhub.module('ui.richtext.prosemirror', function (module, require, $) {
|
||||
that.getInput().val(that.editor.serialize()).trigger('blur');
|
||||
}).on('clear', function () {
|
||||
that.editor.clear();
|
||||
}).on('focus', function () {
|
||||
that.focus();
|
||||
});
|
||||
|
||||
this.$.find('.humhub-ui-richtext').on('focus', function () {
|
||||
that.focus();
|
||||
that.getInput().val(that.editor.serialize()).trigger('blur');
|
||||
})
|
||||
|
||||
if (this.options.backupInterval) {
|
||||
setInterval(() => this.backup(), this.options.backupInterval * 1000);
|
||||
event.on('humhub:content:afterSubmit', () => this.resetBackup());
|
||||
|
Loading…
x
Reference in New Issue
Block a user