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 639f1170a2b79ef49d09eea2383d84174663d224
parent 0add70003df599b158c6496421bb8749fb9d3099
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri, 25 Oct 2019 08:47:05 -0400

init necessary sections

Diffstat:
Mdemo/src/App.vue | 2+-
Msrc/striveneditor.js | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/demo/src/App.vue b/demo/src/App.vue @@ -10,7 +10,7 @@ :toolbar-bottom="true" :placeholder="'Type something in here...'" style="min-height:300px; width: 800px;" - meta-url="metaUrl" + :meta-url="metaUrl" :toolbar-template="customButton" :on-enter="submitOnEnter" ></striven-editor> diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -118,8 +118,8 @@ export default class StrivenEditor { this.body = this.initBody(); this.linkMenu = this.initLinkMenu(); this.imageMenu = this.initImageMenu(); - this.metaDataSection = this.initMetaDataSection(); - this.filesSection = this.options.fileUpload && this.initFilesSection(); + this.metaDataSection = this.options.metaUrl ? this.initMetaDataSection() : null; + this.filesSection = this.options.fileUpload ? this.initFilesSection() : null; this.editor.classList.add("striven-editor");