commit 617217da961f297e20b969f6277e408ca954d540
parent 39d8f6a669fab2ee5678a1f2c55639a4c684b1a3
Author: unitehenry <unitehenry@gmail.com>
Date: Fri, 15 Nov 2019 08:32:34 -0500
Merge branch 'dev' of github.com:striven-erp/striven-editor into dev
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -517,9 +517,18 @@ export default class StrivenEditor {
!document.queryCommandState(opt) && this.executeCommand(opt);
})
+ this.editor.classList.add("se-focus");
+
bodyFocus && bodyFocus();
}
+ const bodyBlur =body.onblur;
+ body.onblur =(e) =>{
+ this.editor.classList.remove("se-focus");
+
+ bodyBlur && bodyBlur();
+ }
+
const bodyClick = body.onclick;
body.onclick = () => {
body.textContent && this.toolbarState();