jejacks0n / mercury

Mercury Editor: The Rails WYSIWYG editor that allows embedding full page editing capabilities directly inline.
http://jejacks0n.github.com/mercury
Other
2.64k stars 531 forks source link

Draggable images and snippets for full region #321

Open peleteiro opened 11 years ago

peleteiro commented 11 years ago

It's a feature request.

I would like to make snippets and images draggable in contentEdit. That I can move my image into the document.

Is that already possible? How would I implement this on Mercury?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/371849-draggable-images-and-snippets-for-full-region?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github).
rhomeister commented 11 years ago

+1. Would be very desirable functionality for me as well.

gvarela commented 11 years ago

This is not a trivial feature to implement. The reason snippets are draggable in a snippets region is because we wrap it with Jquery Sortable. In a full region it requires some heavy handed manipulation of the DOM and contentEditable selections.

corklaassebos commented 11 years ago

+1. In addition, some basic image manipulation (resize, crop) would make this editor close to perfect.

peleteiro commented 11 years ago

https://dev.ckeditor.com/ticket/9764 CKEditor is getting drag-and-drop support as well. (Along with snippet/block/widget)

jejacks0n commented 11 years ago

I'll be doing this with the version I'm working on now.. check the developer notice in the readme. It should be easier to accomplish now, but we'll have to see. The new version is getting a lot of polish (currently on the markdown region), but this will flow over into the full region as well.

One of the cooler things in the new version is the concept of regions being views (in a sort of mvvm/mvc way of describing views).. which means you can create your own region that can be anything from a slide show that allows drag/drop uploading of images + image management to a full backbone application. Common aspects of regions are being put into modules that can be included into your own region -- for instance a drop indicator/file uploading (that's not limited to just images.)

Anyway, I'm having a lot of fun with it, and I think it will allow creating your own complex regions easier. =)

I don't try to compete with some of the big boys like ckeditor, but I do try to stir up the waters in terms of features.. those projects have many developers and probably some level of funding from various companies -- and I don't.

Fyr commented 11 years ago

+1 Yeah! Draggable snippets in "full" regions is very desirable featured for us. We're using your editor for our publishing system. We do like it, but some bugs and such lacks makes us not fully satisfied with Mercury