froala-imgur
v1.0.2
Published
Plugin for uploading imgur image on WYSIWYG HTML Editor
Downloads
3
Maintainers
Readme
froala-imgur
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.