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 db56037ca7532afa326bb8b4290e8c915725f02d
parent 6cb41451d8b36809f66fb239f6c28ac0ec4af02a
Author: unitehenry <unitehenry@gmail.com>
Date:   Thu,  3 Sep 2020 13:33:56 -0400

fullscreen reversion

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

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -873,7 +873,11 @@ export default class StrivenEditor { body.style.height = this.editor.style.height; body.style.minHeight = this.editor.style.minHeight; body.style.maxHeight = this.editor.style.maxHeight; - + + this.editor.setAttribute('height', this.editor.style.height); + this.editor.setAttribute('min-height', this.editor.style.minHeight); + this.editor.setAttribute('max-height', this.editor.style.maxHeight); + this.editor.style.height = 'auto'; this.editor.style.minHeight = 'auto'; this.editor.style.maxHeight = 'auto'; @@ -2807,7 +2811,11 @@ export default class StrivenEditor { se.overflow(); se.editor.style.maxHeight = null; - se.body.style.height = se.editor.style.height; + + se.body.style.height = se.editor.getAttribute('height'); + se.body.style.minHeight = se.editor.getAttribute('min-height'); + se.body.style.maxHeight = se.editor.getAttribute('max-height'); + opt.removeAttribute('data-fullscreen'); } else { blowUpElement(se.editor, '#fff', e => {