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

Avoid Drag and Drop of Any Object in Edit Mode #24727

Closed
bryanboza opened this issue Apr 24, 2023 · 2 comments · Fixed by #25484
Closed

Avoid Drag and Drop of Any Object in Edit Mode #24727

bryanboza opened this issue Apr 24, 2023 · 2 comments · Fixed by #25484

Comments

@bryanboza
Copy link
Member

bryanboza commented Apr 24, 2023

Problem Statement

As a dotCMS user, I want to avoid the ability to drag and drop any object as content in edit mode to prevent a console error. Currently, the system allows users to drag and drop any objects into the content area during edit mode, causing the system to try to add the item as content. This action results in a console error, and the item is never added, resulting in an incomplete action.

Same thing if you try to remove the added item.

Screen.Recording.2023-04-24.at.11.20.26.AM.mov

Steps to Reproduce

  • Open dotCMS and log in
  • Navigate to the Site Browser of the dotCMS backend.
  • Add a new page
  • Edit the created page and go to Edit mode.
  • Attempt to drag and drop any object into the content area.

Acceptance Criteria

  • When in Edit mode, users should not be able to drag and drop any object into the content area.
  • The system should not throw a console error when attempting to drag and drop an item in Edit mode.
  • The user should receive a clear message indicating that the action is not possible.

dotCMS Version

Tested on release-23.05 // Docker // FF

Proposed Objective

Quality Assurance

Proposed Priority

Priority 2 - Important

@fmontes
Copy link
Member

fmontes commented Jul 7, 2023

We need to check here in the dropzone that what is getting drop is actually a contentlet, widget or form.

@rjvelazco rjvelazco self-assigned this Jul 11, 2023
fmontes pushed a commit that referenced this issue Jul 12, 2023
* dev: Avoid Drag and Drop of Any Object in Edit Mode #24727

* dev: clean up
@fmontes fmontes self-assigned this Jul 13, 2023
@josemejias11
Copy link

Approved QA - Tested on master_e66ec4d_SNAPSHOT // Docker // macOS 13.0 // FF v113.0

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

Successfully merging a pull request may close this issue.

5 participants