Skip to content

Plugin for using imgur as uploader for Froala WYSIWYG HTML Editor

License

Notifications You must be signed in to change notification settings

Maxhou00/froala-imgur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Plugin for using imgur as uploader for Froala WYSIWYG HTML Editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published