Get rid of conversion API references from the mention attribute value #8370
Labels
domain:dx
This issue reports a developer experience problem or possible improvement.
intro
Good first ticket.
package:mention
type:task
This issue reports a chore (non-production change) and other types of "todos".
Milestone
Provide a description of the task
_toMentionAttribute()
helper https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-mention/src/mentionediting.js#L52data
) with the attribute value https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-mention/src/mentionediting.js#L86-L102Object.assign()
inckeditor5/packages/ckeditor5-mention/src/mentionediting.js
Line 71 in 8dbcf21
And the result looks like this:
The attribute value is full of crazy references that have nothing to do with the content. This caused the ckeditor5-inspector to throw because of circular references (e.g. in
writer
) when inspecting a mention. Although the inspector is OK now (we'd hit this issue sooner or later, so the fix makes sense), the value of the mention attributes should be revisited because this asks for trouble.The text was updated successfully, but these errors were encountered: