2.2.1 • Published 6 years ago

@pie-libs/editable-html v2.2.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

editable-html

editable-html is an inline HTML editor, based on slate, for use within PIE configuration panels.

It's pretty rough at the moment (UI + logic), but can't spend too much time on it right now.

Demo

npm install 
cd demo
../node_modules/.bin/webpack-dev-server --hot --inline
# go to http://localhost:8080

Usage

Install:

npm install --save @pie-libs/editable-html

Import:

import EditableHTML from '@pie-libs/editable-html';

Declare:

<EditableHTML 
    onChange={this.htmlChanged.bind(this)} 
    markup={markup} />

TODOS:

  • adjust the keypad layout for math
  • add image toolbar
  • add basics back in
  • math + image - delete node
  • move fileInput to toolbar button