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 64d4741d12510af06486d6c7af5953787002372e
parent bdebe4a937e08f1a4db9fd839a823e9aae0689b4
Author: Henry Unite <unitehenry@gmail.com>
Date:   Fri, 18 Oct 2019 20:32:20 -0400

README
Diffstat:
MREADME.md | 23++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -45,7 +45,7 @@ const editor = new StrivenEditor(editorEl, { toolbarHide: true, toolbarBottom: t ```js <template> - <striven-editor :minimal="true" /> + <striven-editor ref="editor" :minimal="true" /> </template> <script> @@ -57,6 +57,27 @@ export default { </script> ``` +### Using Vue Component Methods + +```js +<template> + <striven-editor ref="editor" :minimal="true" /> +</template> + +<script> +import { VueStrivenEditor as StrivenEditor } from '@striven-erp/striven-editor'; + +export default { + components: { StrivenEditor }, + mounted () { + const editor = this.$refs.editor.editor; + + console.log(editor.getContent()); + } +} +</script> +``` + ## Knockout Binding ```js