Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.09 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.09 KB

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.