commit aac14883c13c903903b9f93cafae5a17288e760b parent 13a8dbff3f1826e6c4f0ae45162f63e67caebaa2 Author: unitehenry <unitehenry@gmail.com> Date: Tue, 5 Nov 2019 11:35:18 -0500 responsive options menu Diffstat:
| M | src/striveneditor.js | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -560,6 +560,11 @@ export default class StrivenEditor { body.onfocus = () => { !this.browser.isEdge() && this.setRange(); body.textContent && this.toolbarState(); + + this.getActiveOptions().forEach(opt => { + !document.queryCommandState(opt) && document.execCommand(opt, true); + }) + bodyFocus && bodyFocus(); }