The ClipboardPipeline and PasteFromOffice should allow for common HTML string normalisation before conversion to view #17309
Labels
package:clipboard
package:paste-from-office
status:in-progress
Set automatically when an issue lands in the "In progress" column. We are working on it.
support:2
An issue reported by a commercially licensed client.
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
📝 Provide a description of the new feature
The
ClipboardPipeline
is performing some HTML normalization (on string) just before converting it to the view document fragment:ckeditor5/packages/ckeditor5-clipboard/src/clipboardpipeline.ts
Lines 229 to 233 in d874050
PasteFromOffice
is ignoring the prepared view document fragment and is performing a separate normalization on the data transfer payload:ckeditor5/packages/ckeditor5-paste-from-office/src/pastefromoffice.ts
Line 83 in d874050
ckeditor5/packages/ckeditor5-paste-from-office/src/pastefromoffice.ts
Line 88 in d874050
Those cases could be unified as an extension point in the
ClipboardPipeline
so non-parsed data could be processed before conversion to the view document fragment.If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: