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 459d69dd6c2f6206431c1ffdf981f5b75752c215
parent 3b876cb0902ecd87dc75cc59facfc5c95cc8536d
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri, 11 Sep 2020 16:39:41 -0400

set the overflow after body height is applied on fullscreen collapse

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

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -2890,9 +2890,7 @@ export default class StrivenEditor { opt.innerHTML = ''; opt.append(createSVG(EXPANDICON)); - - se.overflow(); - + se.editor.style.maxHeight = null; document.body.style.overflow = null; @@ -2900,6 +2898,8 @@ export default class StrivenEditor { se.body.style.minHeight = se.editor.getAttribute('min-height'); se.body.style.maxHeight = se.editor.getAttribute('max-height'); + se.overflow(); + opt.removeAttribute('data-fullscreen'); }; }