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 37d3df0bfe7d50167be56874386cd473d78d9c0f
parent 20f19bd0c4035699fc5c51511002d5a5d6c55a14
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri, 25 Oct 2019 11:43:33 -0400

toolbar styles

Diffstat:
Msrc/striveneditor.css | 4++++
Msrc/striveneditor.js | 4++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/striveneditor.css b/src/striveneditor.css @@ -79,6 +79,10 @@ padding: 8px; } +.striven-editor .se-toolbar-group { + display: inline-block; +} + .striven-editor .se-toolbar-group[data-open="true"] { z-index: 1000; } diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -284,13 +284,13 @@ export default class StrivenEditor { this.toolbar.classList.remove('se-toolbar-close'); setTimeout(() => { this.toolbarOptionsGroup.style.display = "flex"; - this.toolbarTemplate.style.display = "flex"; + this.toolbarTemplate && (this.toolbarTemplate.style.display = "flex"); }, 200) } closeToolbar() { this.toolbarOptionsGroup.style.display = "none"; - this.toolbarTemplate.style.display = "none"; + this.toolbarTemplate && (this.toolbarTemplate.style.display = "none"); this.toolbar.classList.add('se-toolbar-close'); }