@webedia/megadraft-image-gallery-plugin

1.1.4 • Public • Published

megadraft image gallery 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-gallery-plugin";

const imageGalleryPlugin = plugin({ bucket: 'bucket-name' });

class Example extends React.Component {
  render(){
    return (
      <MegadraftEditor plugins={[imageGalleryPlugin]} />
    );
  }
}

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.

Package Sidebar

Install

npm i @webedia/megadraft-image-gallery-plugin

Weekly Downloads

2

Version

1.1.4

License

MIT

Unpacked Size

128 kB

Total Files

13

Last publish

Collaborators

  • janssenrodrigues
  • vitortolentino
  • jvsa7
  • nandosang