-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Labels
type:improvementThis issue reports a possible enhancement of an existing feature.This issue reports a possible enhancement of an existing feature.
Milestone
Description
π 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.
- The
π― 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.This issue reports a possible enhancement of an existing feature.