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 d1c45f6f592de6c6c093241bc6fa7a21ee554a96
parent bb06c4249c0a9084c34d331c33182c6ce5570e06
Author: unitehenry <unitehenry@gmail.com>
Date:   Fri, 18 Oct 2019 11:56:43 -0400

README

Diffstat:
MREADME.md | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -15,6 +15,10 @@ <strong>Supports Firefox, Edge, Safari, and Chrome</strong> </p> +<br /> + +✌ [Vue](#vue-component) | 🥋 [Knockout](#knockout-binding) + ## Getting Started ### Install Package @@ -39,6 +43,35 @@ import StrivenEditor from 'striven-editor'; const editor = new StrivenEditor(editorEl, { toolbarHide: true, toolbarBottom: true }); ``` +## Vue Component + +```js +<template> + <striven-editor :minimal="true" /> +</template> + +<script> +import { VueStrivenEditor as StrivenEditor } from '@striven-erp/striven-editor'; + +export default { + components: { StrivenEditor } +} +</script> +``` + +## Knockout Binding + +```js +import ko from 'knockout'; +import { KoStrivenEditor } from '@striven-erp/striven-editor'; + +new KoStrivenEditor(ko); +``` + +```html +<div data-bind="striveneditor: editorConfig" /> +``` + ## Fetching Meta Data on Link Insertions To fetch meta data from links that are pasted or inserted into the editor, you must set up a back end utility to fetch the data and send it back to your client. For a node server, we recommend using [metascraper](https://metascraper.js.org/#/) on your server. See the example below for setting this up with express.