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 3effe6331b2b41d30574b70713db1f4c12537800
Author: hunite <hunite@striven.com>
Date:   Fri, 13 Sep 2019 13:32:08 -0400

init

Diffstat:
A.gitignore | 2++
ACHANGELOG.md | 19+++++++++++++++++++
ACONTRIBUTING.md | 39+++++++++++++++++++++++++++++++++++++++
ALICENSE.txt | 8++++++++
AREADME.md | 21+++++++++++++++++++++
Apackage.json | 24++++++++++++++++++++++++
Astriven-editor.gif | 0
Astriven-icon.png | 0
Awebpack.config.js | 0
9 files changed, 113 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +node_modules +\ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -0,0 +1,18 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [1.0.0] - 2019-09-13 +### Added +- Minimal Striven Editor +- Open Source Project + +### Changed +- [Tributejs](https://github.com/zurb/tribute)(mentions) has been extracted out of the editor. The editor is a ```contenteditable``` div so just attach an instance of ```Tribute``` to it wherever you'd like. + +### Removed +- Nothing! This is an init. +\ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md @@ -0,0 +1,39 @@ +# CONTRIBUTING + +Anyone can contribute to the Striven WYSIWYG editor. Please open an issue for any feature requests, bug fixes, and enhancements that you would like to be implemented into the editor. Keep in mind that this editor has been tailored to the needs of the Striven ERP Platform, so some requests may not be fulfillable. + +## Install Dependencies + +```sh +$ npm install +``` + +## Symlink Development Package + +Initialize ```striven-editor``` symlink. + +```sh +$ npm link +``` + +Symlink ```striven-editor``` in the development environment. + +```sh +$ cd demo && npm link striven-editor +``` + +## Start Webpack + +Run webpack in watch mode. + +```sh +$ npx webpack -w +``` + +## Start Development Server + +Start the development server in ```demo``` and go to ```http://localhost:8080/``` to begin developing. + +```sh +$ cd demo && npm start +``` diff --git a/LICENSE.txt b/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright 2019 Striven + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +\ No newline at end of file diff --git a/README.md b/README.md @@ -0,0 +1,20 @@ +# Striven Editor +![Striven Logo](./striven-icon.png "Striven Logo") + +💼 [Striven](https://striven.com/) +| +📝 [Demo](#) + +<img style="display: block; margin: 0 auto;" src="./striven-editor.gif" alt="stirven-editor" /> + +## Getting Started + +```sh +$ npm install striven-editor +``` + +```js +import StrivenEditor from 'striven-editor'; + +const editor = new StrivenEditor(editorEl); +``` +\ No newline at end of file diff --git a/package.json b/package.json @@ -0,0 +1,24 @@ +{ + "name": "striven-editor", + "version": "0.0.1", + "description": "The lightweight Striven WYSIWYG editor built with pure JavaScript.", + "main": "dist/index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/business-by-miles/striven-editor.git" + }, + "keywords": [ + "Striven", + "Editor", + "WYSIWYG" + ], + "author": "Striven <https://striven.com/>", + "license": "MIT", + "bugs": { + "url": "https://github.com/business-by-miles/striven-editor/issues" + }, + "homepage": "https://github.com/business-by-miles/striven-editor#readme" +} diff --git a/striven-editor.gif b/striven-editor.gif Binary files differ. diff --git a/striven-icon.png b/striven-icon.png Binary files differ. diff --git a/webpack.config.js b/webpack.config.js