yabwe / medium-editor

Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.
https://yabwe.github.io/medium-editor/
Other
16.05k stars 1.85k forks source link

Drag text around #789

Open aeneasr opened 9 years ago

aeneasr commented 9 years ago

In all the demos I tried it is not possible to select text and drag it to a different position. What happens is, that the background of the drop zone is greyed out but if you drop it nothing changes.

nmielnik commented 9 years ago

@arekkas can you try initializing medium-editor with the fileDragging option set to false?

new MediumEditor('.editable', { fileDragging: false });

aeneasr commented 9 years ago

Does not seem to work or maybe I'm doing something wrong: http://jsfiddle.net/a22ge8mf/2/

nmielnik commented 9 years ago

@arekkas would you mind mentioning if you were able to work around the issue or not? We had an in-depth discussion in gitter but it'd be good to have some more information in this issue so people can refer to it easier if they run into something similar.

aeneasr commented 9 years ago

Hey I'm currently on holidays but i'll report back around 22th of september :)

aeneasr commented 9 years ago

I was not able to work around this issue yet. We talked in gitter about making it possible to use block level elements in contenteditable and that it requires multiple contenteditable fields.

Something similar has btw already been done here: http://getcontenttools.com