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 8c243a223fafbe9b6f0c79591da71a97b6469e7a
parent 698c7ca8746625229a98517c906c1ecfb3778844
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri, 15 Nov 2019 08:22:57 -0500

null checking for setContent

Diffstat:
Msrc/striveneditor.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -1227,7 +1227,7 @@ export default class StrivenEditor { setContent(html) { this.clearContent(); - this.body.innerHTML = html; + html && this.body.innerHTML = html; } setRange(range) {