Skip to content

Improve Drag & Drop Behavior for Tables #18126

@Mati365

Description

@Mati365

🔄 Improve Drag & Drop Behavior for Tables

🎯 Goal

Change the global drag-and-drop behavior for tables to ensure correct placement and handling, particularly in relation to templates.

📝 Details

  • Dragging tables (via selection handle):

    • When dragging a table, the entire table should be placed on drop.
    • ClipboardPipeline detects whether it's a drop or paste.
    • TrackChanges integration needs to be verified.
    • Ensure that markers are preserved.
    • Example: Moving a nested table to an adjacent row should place the entire table there.
  • Copy-Paste Behavior:

    • Should continue merging the data as it currently does.

🛠️ Fix: Template Insertion with Tables

🔍 Current Issue

  • Right now, tables get merged when inserting templates.
  • Drag-and-drop has a flag to control this behavior.
  • Template insertion could use a separate flag (quirky but feasible).

✅ Expected Behavior

  • Paste: Inline the table within existing content (no nesting).
  • Template Insert: Nest the table instead of merging.
  • Drag and Drop: Nest the table in the target location.

❓ Open Questions

  • Should we modify this behavior for other cases?
  • Green light for behavior changes related to template handling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:improvementThis issue reports a possible enhancement of an existing feature.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions