1.0.2 • Published 2 years ago

froala-imgur v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

froala-imgur npm license

Plugin for using imgur as uploader for Froala WYSIWYG HTML Editor

Prerequisites

The following must be available for this plugin to work properly:

  • Froala Editor >= 4.0.0 (developed under 4.0.4)
  • A ClientID from the imgur API

Installing

Add froala-imgur to your package.json:

npm install --save froala-imgur
# or
yarn add froala-imgur

Load froala-imgur.js on your page:

<!-- after loading froala core -->
<script src="/node_modules/froala-imgur/froala-imgur.js"></script>

In your Froala configuration, add imgurClientId with your imgur's API id and add imgurButton anywhere on your toolbar.

const froalaConfig = {
  ...,
  imgurClientId: "xxxxxxxxxxxx",
  toolbarButtons: ['imgurButton', '|', 'insertVideo', ...],
  ...
};

License

This project is licensed under the MIT License - see the LICENSE.md file for details.