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 489a8cefec6d0a37e786f238bbd7b4015a8a6805
parent fe5a3ab43c8dd8313f33a215e8ebc9e444a470dc
Author: Henry Unite <unitehenry@gmail.com>
Date:   Tue,  8 Sep 2020 09:05:00 -0400

Merge branch 'dev'

Diffstat:
Mpackage.json | 2+-
Msrc/striveneditor.js | 5+++--
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { "name": "@striven-erp/striven-editor", "private": false, - "version": "3.6.5", + "version": "3.6.6", "description": "The editor used for the Striven ERP system.", "main": "./dist", "scripts": { diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -1860,10 +1860,11 @@ export default class StrivenEditor { [...that.toolbar.getElementsByClassName('se-toolbar-selection')] .forEach(sl => { - sl.style.display = isResponsive ? 'none' : null; + const respond = that.editor.offsetWidth < 500; + sl.style.display = respond ? 'none' : null; const { nextElementSibling } = sl; if(nextElementSibling.classList.contains('se-divider-section')) { - nextElementSibling.style.display = isResponsive ? 'none' : null; + nextElementSibling.style.display = respond ? 'none' : null; } })