View Issue Details

IDProjectCategoryView StatusLast Update
1793Composrcore_rich_mediapublic2015-02-13 22:03
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary1793: Bundle CKEditor imagepaste plugin
DescriptionBundle it so that raw pixel data may be pasted directly into the editor:
http://ckeditor.com/addon/imagepaste

Update our build docs mentioning to include it (so we can continue to update CKEditor without too much pain)

Test it, make sure it comes through as an Composr inline attachment (we should be able to auto-convert from base64 like we already do with pasted rich text images).

Test on Chrome/Firefox/IE.
TagsPseudo-addon: CKEditor
Attach Tags
Time estimation (hours)1
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2015-02-13 20:12

administrator   ~2559

In fact, this plugin was not what I thought. Image past already works, and this plugin just duplicates what Composr already does.

Therefore I hope you'll be okay if instead of directly using this plugin, we make a custom plugin that smooths over image paste functionality in different browsers.

Chris Graham

2015-02-13 20:13

administrator   ~2560

* By "already works", I mean in Firefox. So I am looking at implementing support for Chrome, which isn't automatic like Firefox is.

Rishi Saravanan

2015-02-13 21:27

reporter   ~2561

yes, definitely!

(you're right, with Firefox I've been able to select entire articles from other websites, including images, and simply paste in Composr. Works well.)

Chris Graham

2015-02-13 21:34

administrator   ~2562

One of the things I've been documenting and testing, is the confusing nature of how exactly paste works.

For example, pasting a lump of HTML from another website, which may or may not contain images -- is different from pasting an image file reference from say Windows Explorer -- is different from pasting pixels from a graphic editor -- is different from pasting from a rich text format scenario (such as Microsoft Word). I've documented these different kinds of pasting and the kinds of results you should expect for each.

Copy and pasting HTML with images has always worked, as it just references the remote URLs (it essentially just copies the actual HTML, with a few changes to make it less context-dependent). However for the case of pixels, Firefox handles this via a direct embedment (using base64 encoding). While all other browsers have no special handling. I've almost finished, and the situation will be much improved...

Firefox: Works as before
Chrome: Now works with pasted pixels (didn't do anything before)
IE11+: Now works with pasted pixels (didn't do anything before)
Safari: Produces an understandable error message and no paste (before it appeared to paste the image, but used a local reference that could never actually upload to the server - very confusing)

Within time Safari will implement the same API as Chrome and should automatically start working correctly too. It's the new W3C clipboard API, which I've made my plugin work against.

Issue History

Date Modified Username Field Change
2017-05-06 23:44 Chris Graham Tag Renamed CKEditor => Pseudo-addon: CKEditor