penguin-medium-editor

1.1.1 • Public • Published

penguin-medium-editor

medium-editor is a clone of medium.com inline editor toolbar.

This plugin integrates this editor into your penguin.js based website.

Installation

$ npm i -S penguin-medium-editor

Then edit your package.json file to include the component.

{
  "penguin": {
    "components": {
      "MediumEditor": "penguin-medium-editor"
    }
  }
}

Usage

Now you can use this as a component. Just place it onto a block element.

<div data-component='MediumEditor' data-props='{"field":"my-image-field"}'>
  Default content of the field.
</div>

Available props

  • field - This field is required. It specifies which field the image url should be saved to.
  • theme - The theme to use for the editor.

All other props are passed as options to the medium-editor constructor. Read the docs.

Package Sidebar

Install

npm i penguin-medium-editor

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • domachine