]>
BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/common-events.js
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'development' of github.com:BookStackApp/BookStack into development
[bookstack]
/
resources
/
js
/
wysiwyg
/
common-events.js
diff --git
a/resources/js/wysiwyg/common-events.js
b/resources/js/wysiwyg/common-events.js
index 7d3f1113e16ebf2318a47db4dfec9abb26031116..a25debac123d75c515814400f75ee44144600f40 100644
(file)
--- a/
resources/js/wysiwyg/common-events.js
+++ b/
resources/js/wysiwyg/common-events.js
@@
-27,6
+27,8
@@
export function listen(editor) {
// Focus on the editor
window.$events.listen('editor::focus', () => {
- editor.focus();
+ if (editor.initialized) {
+ editor.focus();
+ }
});
}
\ No newline at end of file