stivehu / base64image
ckeditor plugin. Adds images from local client as base64 string into the source without server side processing.
Installs: 5 365
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 48
Language:JavaScript
Requires
This package is auto-updated.
Last update: 2025-04-28 21:38:16 UTC
README
Created by ALL-INKL.COM - Neue Medien Münnich - 04. Feb 2014
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.
Requirements
The Browser must support the JavaScript File API.
Installation
-
Download the plugin from http://github.com/stivehu/base64image
-
Either run
php composer.phar require --prefer-dist stivehu/base64image "*"
or add
"stivehu/base64image": "*"
- Add your composer.json this lines:
"scripts": {
"post-update-cmd": [
"cp -r vendor/stivehu/base64image vendor/ckeditor/ckeditor/plugins/base64image",
"sed -i 's/^};$/};\\nCKEDITOR.config.extraPlugins = \"base64image\";/g' vendor/ckeditor/ckeditor/config.js",
"awk -i inplace '!a[$0]++' vendor/ckeditor/ckeditor/config.js"
],
"post-install-cmd": [
"cp -r vendor/stivehu/base64image vendor/ckeditor/ckeditor/plugins/base64image",
"sed -i 's/^};$/};\\nCKEDITOR.config.extraPlugins = \"base64image\";/g' vendor/ckeditor/ckeditor/config.js",
"awk -i inplace '!a[$0]++' vendor/ckeditor/ckeditor/config.js"
]
},