Skip to content

Table Toggling FeatureΒ #18131

@Mati365

Description

@Mati365

πŸ”„ Table Toggling Feature

✨ Overview

The Table Toggling feature enables seamless switching between Content Tables and Layout Tables within CKEditor. This allows for flexible table usage while maintaining a user-friendly UI.


πŸ› οΈ Functionality

  • Toggling Behavior

    • Users can switch between Content Table and Layout Table.
    • Some data loss is expected (e.g., captions, <th> elements).
    • Table dimensions (columns, width, etc.) remain unchanged.
    • Integrators should NOT be warned about potential data loss.
  • UI Implementation

    • The tableProperties button is transformed into a split button.
    • Clicking the arrow expands a dropdown menu with:
      • Content Table
      • Layout Table
    • Similar approach to the file upload icon.
    • Implemented via TableLayout, which overrides the default component.

🎯 Key Considerations

  • Predicting Use Cases:
    • Introducing toggling as an option now is preferable to avoid future complexity.
  • Technical Approach:
    • Follows the same logic as other toolbar split buttons.
  • Warnings & Constraints:
    • Inform integrators about data loss risks.
    • Ensure a smooth transition without breaking layouts.

πŸ—οΈ Next Steps

  • Implement UI changes in tableProperties.
  • Integrate TableLayout override.
  • Test edge cases for switching behavior.

πŸ“Œ Question: Should we allow customization of the transition behavior (e.g., preserving some attributes)? πŸ€”


Parent issue #18132

Metadata

Metadata

Assignees

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