megadraft-image-plugin

0.4.2 • Public • Published

megadraft-image-plugin - Megadraft Plugin

Usage

Include the plugin in the plugins prop of your Megadraft instance.

import React from "react";
import ReactDOM from "react-dom";
import {MegadraftEditor} from "megadraft";
 
import plugin from "megadraft-image-plugin";
 
class Example extends React.Component {
  render(){
    return (
      <MegadraftEditor plugins={[plugin]} />
    );
  }
}
 
ReactDOM.render(<Example />, document.getElementById("container"));

Contributing

Install, run, test.

# Install npm dependencies
make setup

# Gulp dev-server task with webpack + sass running on http://localhost:8080/
make run

# Run mocha tests + eslint
make test

If you're constantly running tests, there's a faster alternative using mocha's watch feature:

make watch_unit

Releasing

There's a prepublish script entry on package.json that runs build tasks before publishing the package.

npm publish

Third Party

The sample plugin uses the extension icon from https://design.google.com/icons/ under Apache License Version 2.0.

Some Photos

Alt text

Alt text

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.4.24latest

Version History

VersionDownloads (Last 7 Days)Published
0.4.24
0.4.10
0.4.00
0.3.70
0.3.60
0.3.50
0.3.40
0.3.30
0.3.20
0.3.10
0.3.00
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.00
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i megadraft-image-plugin

Weekly Downloads

3

Version

0.4.2

License

MIT

Unpacked Size

215 kB

Total Files

18

Last publish

Collaborators

  • valmack
  • joshslee
  • leo.sun
  • joeypereira
  • lightning.lu10
  • lilnamcor
  • craiglu