commit 639f1170a2b79ef49d09eea2383d84174663d224 parent 0add70003df599b158c6496421bb8749fb9d3099 Author: unitehenry <unitehenry@gmail.com> Date: Fri, 25 Oct 2019 08:47:05 -0400 init necessary sections Diffstat:
| M | demo/src/App.vue | | | 2 | +- |
| M | src/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");