Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drag drop inside summernote #91

Closed
JeromeSpilmont opened this issue Nov 7, 2013 · 6 comments
Closed

drag drop inside summernote #91

JeromeSpilmont opened this issue Nov 7, 2013 · 6 comments
Assignees
Milestone

Comments

@JeromeSpilmont
Copy link

Hello and Congratulations for yout job. it's amazing !!!!
Just a little question is it possible to select letters inside the summernote and drag drop to another place inside the div.note-editable.

Cheers

@ghost ghost assigned hackerwins Nov 10, 2013
@soomtong
Copy link
Contributor

it's a bug, thank you.

dup #88

@hackerwins hackerwins reopened this Jan 2, 2014
@hackerwins
Copy link
Member

@JeromeSpilmont For now, this is not possible. Because Text drag&drop events conflict with image drag&drop. If this feature is important, I will provide option for disable drag&drop image.

@JeromeSpilmont
Copy link
Author

@hackerwins It seems to be really interesting if you permit to drag/drop images
kind regards

@hackerwins
Copy link
Member

You can disable dragAndDrop event. Check out below optiondisableDragAndDrop.

https://github.com/HackerWins/summernote/blob/master/src/js/app.js#L27

@apoCZ
Copy link

apoCZ commented Sep 24, 2014

@hackerwins
Hi,
I'm using your option disable Drag And Drop: true, but drag & drop text inside summernote still doesn't work. Actually nothing happens. Can you provide me an example how to create summernote editor with ENABLED TEXT drag & drop inside the editor and DISABLE IMAGE drag & drop? Except this little inconvenience is your editor absolutely TOP!

Thank you.

@apoCZ
Copy link

apoCZ commented Sep 24, 2014

Hi again,
when you change source code like this it works:
/**
* Drag and Drop Events
*
* @param {Object} layoutInfo - layout Informations
* @param {Boolean} disableDragAndDrop
/
var handleDragAndDropEvent = function (layoutInfo, disableDragAndDrop) {
if (disableDragAndDrop) {
// prevent default drop event
/

$document.on('drop', function (e) {
e.preventDefault();
});
*/
} else {
attachDragAndDropEvent(layoutInfo);
}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants