Plugin for using imgur as uploader for Froala WYSIWYG HTML Editor
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
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', ...],
...
};
This project is licensed under the MIT License - see the LICENSE.md file for details.