View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1793 | Composr | core_rich_media | public | 2015-02-07 21:05 | 2015-02-13 22:03 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 1793: Bundle CKEditor imagepaste plugin | ||||
Description | Bundle 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. | ||||
Tags | Pseudo-addon: CKEditor | ||||
Attach Tags | |||||
Time estimation (hours) | 1 | ||||
Sponsorship open | |||||
|
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. |
|
* By "already works", I mean in Firefox. So I am looking at implementing support for Chrome, which isn't automatic like Firefox is. |
|
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.) |
|
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. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-05-06 23:44 | Chris Graham | Tag Renamed | CKEditor => Pseudo-addon: CKEditor |