Closed niegowski closed 2 weeks ago
The recent updates focus on enhancing marker handling within CKEditor's restricted editing mode. New features like a custom converter function and event handler have been introduced to improve downcast conversion, especially for inline images and text markers. These changes aim to provide more effective management of markers by encapsulating them within specific HTML elements without disrupting the content structure.
File Path | Change Summary |
---|---|
packages/ckeditor5-restricted-editing/src/restrictededitingmodeediting.ts |
Added a new event handler for DowncastAddMarkerEvent to handle marker conversion. Introduced custom converters for wrapping marker ranges with <span> . Adjusted existing converters for enhanced marker handling in downcast conversion. |
packages/ckeditor5-restricted-editing/tests/restrictededitingmodeediting.js |
Added ImageInlineEditing to plugins in the beforeEach block. Introduced new tests for handling inline images without splitting span between text nodes. Implemented a custom converter function within a nested describe block for marker conversion. Included a test to ensure proper conversion behavior when markers are consumed by another converter. |
Suggested merge commit message (convention)
Fix (restricted-editing): Fixed removing an inline image inside an editable region. Closes #16218.
Additional information
For example – encountered issues, assumptions you had to make, other affected tickets, etc.
Summary by CodeRabbit