striven-editor

Maintained and contributed to an open source WYSIWYG editor as an internship project that made it to production and was adopted by the company I was working at.
git clone https://unitehenry.com/git/striven-editor.git
Log | Files | Refs | README | LICENSE

commit b6c9df24444b80cf966166963080b3c6ed499ce7
parent 162de335be4b0ad4cf19ab107feeefc0ff427f50
Author: Henry Unite <unitehenry@gmail.com>
Date:   Wed,  9 Sep 2020 13:48:48 -0400

make body fullscreen and remove overflow from page

Diffstat:
Msrc/striveneditor.js | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -54,7 +54,6 @@ export default class StrivenEditor { const actives = [...menus, ...inputs, se.body, se.toolbar, se.editor]; if ( - se.editor.getAttribute('data-expanded') !== 'true' && el.innerHTML != el.data_orig && !se.toolbarClick && !actives.includes(document.activeElement) && @@ -2913,9 +2912,9 @@ export default class StrivenEditor { opt.innerHTML = ''; opt.append(createSVG(COLLAPSEICON)); - se.body.style.overflow = null; + document.body.style.overflow = null; - se.body.style.height = null; + se.body.style.height = '100%'; se.body.style.minHeight = null; se.body.style.maxHeight = null;