stivehu/base64image

ckeditor plugin. Adds images from local client as base64 string into the source without server side processing.

Installs: 3 801

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 48

Language:JavaScript

0.0.2 2021-05-28 11:23 UTC

This package is auto-updated.

Last update: 2024-04-28 19:44:31 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

  1. Download the plugin from http://github.com/stivehu/base64image

  2. Either run

php composer.phar require --prefer-dist stivehu/base64image "*"

or add

"stivehu/base64image": "*"
  1. 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"
    ]
  },