Skip to content

Ckeditor plugin to paste images from clipboard as base64 strings

License

Notifications You must be signed in to change notification settings

isw-kudos/ckeditor-pastebase64

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ckeditor-pastebase64

This plugin is designed to make the pasting of image data (not html) consistent across browsers. So that Chrome/Firefox/IE/Edge will all paste an with a base64 data URI when pasting image data from the clipboard. This image data typically comes from screenshots or copying directly from image editing software.

What is CKEditor?

CKEditor is a WYSIWYG text editor. See the official site for more details.

Requirements

JavaScript File API. Tested and working in Chrome/Firefox/IE/Edge. Does not work in Safari.

Plugin installation and setup

  1. Copy the plugin files to the plugins directory (/ckeditor/plugins/pastebase64/)
  2. Ensure to reference the plugin.js file from your html file after ckeditor.
  3. Enable the plugin by using the extraPlugins configuration setting. Example:
    CKEDITOR.config.extraPlugins = "pastebase64";

About

Ckeditor plugin to paste images from clipboard as base64 strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%