1.1.1 • Published 7 years ago

penguin-medium-editor v1.1.1

Weekly downloads
8
License
MIT
Repository
-
Last release
7 years ago

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.

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago