upcastAttributeToMarker converter overrides the conversion data object even when there is no conversion match #9779
Labels
package:engine
resolution:expired
This issue was closed due to lack of feedback.
squad:collaboration
Issue to be handled by the Collaboration team.
status:stale
type:bug
This issue reports a buggy (incorrect) behavior.
This leads to a situation when adding a converter with the
editor.conversion.dataToMarker
upcast helper changes can change the conversion for some elements even if they do not match the view specified by the converter.This behavior crashes the editor when the
Table
and eitherTrack Changes
orComments
are added to the editor (there're some additional prerequisites to reproduce the error though).We should rethink if overriding the
data
properties for the whole element conversion in theckeditor5/packages/ckeditor5-engine/src/conversion/upcasthelpers.js
Line 690 in 523f88c
As a temporary solution, we can check if any element can be consumed and return early for conversion calls for non-matching view elements - before the
ckeditor5/packages/ckeditor5-engine/src/conversion/upcasthelpers.js
Lines 685 to 707 in 523f88c
The text was updated successfully, but these errors were encountered: