📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

@pie-lib/editable-html

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pie-lib/editable-html

`editable-html` is an inline HTML editor, based on [`slate`](https://github.com/ianstormtaylor/slate), for use within PIE configuration panels.

11.1.1
latest
Version published
Weekly downloads
322
-74.28%
Maintainers
5
Weekly downloads
 
Created

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-lib/editable-html

Import:

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

Declare:

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

In production

If you are running in production and have an external React and ReactDOM, you will also need to include ReactDOMServer.

  <script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
  <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
  <!-- this must be added -->
  <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom-server.browser.production.min.js"></script>

FAQs

Package last updated on 26 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts