Opened 10 years ago

Last modified 10 years ago

#13464 confirmed New Feature

Expose simple way to trigger lineutils-based DnD — at Version 4

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description (last modified by Piotrek Koszuliński)

(Note: lineutils-based DnD is the mechanism used while dragging block widgets)

Use cases:

  1. When user starts dragging an inline image (or image2) I would like to be able to enable line-utils-based DnD. I imagine that I can listen on editor#dragstart, check what's dragged, and use some editor method, to do what I want. Of course this rises questions like - what with empty blocks left after dragging an image from them - this would be handled by the developer which implements such feature or by CKEditor. We could e.g. make it possible to alter dragRange (it may even be possible now) so a developer would be able to select whole paragraph.
  1. Dragging some stuff from outside of the editor. E.g. there could be a list of products and dragging it into editor should be done with line utils.
  1. Dragging table rows with line utils?
  1. Must it be drag and drop? Maybe we can expose this feature for more user actions. You click a widget, choose "move" and while your moving your cursor above the editor, then line utils appear with an icon like magicline. Clicking this icon moves the element there.
    • With some more UX-related improvements we could enable magicline and lineutils-based DnD on touch devices.

Change History (4)

comment:1 Changed 10 years ago by Piotrek Koszuliński

Description: modified (diff)
Status: newconfirmed

comment:2 Changed 10 years ago by Piotrek Koszuliński

Description: modified (diff)

comment:3 Changed 10 years ago by Piotrek Koszuliński

Description: modified (diff)

comment:4 Changed 10 years ago by Piotrek Koszuliński

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy