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 and Drop Doesn't Work Within the Editor Fixes #839 #840

Merged
merged 3 commits into from
May 17, 2018

Conversation

gregory-bretall
Copy link
Contributor

Prelude

A customer noted to us that users are unable to drag and drop text or images internally in AlloyEditor. I verified that this is not only the case in the portal but on alloyeditor.com as well.

Issue

You cannot internally drag and drop text or images within AlloyEditor.

Steps to Reproduce :

  1. Content -> Blogs -> Add Blog Entry
  2. Upload an image to the blog post content
  3. Write text to the body content
  4. Attempt to drag image in between some words

Expected Results: The image is moved to the location the cursor indicates.

Actual Results: The cursor properly traces where you will 'drop' the image but on mouse up nothing happens. The image is not moved.

Solution

I made it so the preventDefault is only fired by AlloyEditor's dragdrop function when we need to specifically override the behavior, otherwise the default CKEditor dragDrop should be use.

Test

Tested on Chrome, Firefox, MS Edge, and IE11.

This was referenced May 14, 2018
@jbalsas jbalsas changed the base branch from master to 1.x May 17, 2018 08:26
@jbalsas jbalsas merged commit bc33307 into liferay:1.x May 17, 2018
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

Successfully merging this pull request may close these issues.

3 participants