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