downcastAttributeToElement does not support downcasting from specified model element #4321
Labels
package:engine
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
Milestone
downcastAttributeToAttribute
converter lets us specify from which model element the attribute is converted. This is an example configuration:In this case,
source
attribute is converted only from images.The same is not possible with
downcastAttributeToElement
. There are two things we can do now:Assume that this kind of conversion always happens for
$text
. This is quite a rational assumption given that the converter useswrap
converter which is meant to wrap parts of view inAttributeElement
. I don't know if there's any other real case. Maybe if we will add inline elements or something.Provide support for
name
in config.The text was updated successfully, but these errors were encountered: