diff --git a/protected/humhub/modules/content/resources/js/humhub.ui.richtext.prosemirror.js b/protected/humhub/modules/content/resources/js/humhub.ui.richtext.prosemirror.js index a4b82f962e..ab8a79ab53 100644 --- a/protected/humhub/modules/content/resources/js/humhub.ui.richtext.prosemirror.js +++ b/protected/humhub/modules/content/resources/js/humhub.ui.richtext.prosemirror.js @@ -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());