- Inspired by base64Image (http://ckeditor.com/addon/base64image)
Adds images from local client as base64 string into the source without server side processing. You can also add external image urls into the source.
0.0.1
- Upload an image from local computer
- Upload an image from an url
- Set max file size
- Set allowed file types
- Scan for restricted image content - coming soon
Exclusions: No validation on url based inclusions
The Browser must support the JavaScript File API.
-
Download the plugin from https://github.com/RamuRChenchaiah/Image-Embed
-
Extract (decompress) the downloaded file into the plugins folder of your CKEditor installation. Example: /ckeditor/plugins/embedImage
-
Enable the plugin by using the extraPlugins configuration setting. Example: CKEDITOR.config.extraPlugins = "embedImage";
-
Set the file size as: (in MBs) - Default size is: 5 MB Example: CKEDITOR.config.embedImageFileSize = 5;
-
Set the allowed types as : Example: CKEDITOR.config.embedImageFileTypes = 'image/png,image/jpeg';
-
Set the restriction on images: (default value is yes) Example: CKEDITOR.config.embedImageScanForRestriction = 'yes';
-
Include the jquery gritter in your index file or wherever you have included CKEditor. Example:
<script src="ckpath/plugins/embedImage/js/jquery.gritter.min.js"> </script>or if you have jquery gritter js & css files, include them appropriately.
To run unit tests, goto the tests folder and access testSuite.html