html-support/converters
@ckeditor/ckeditor5-html-support/src/converters
Filtering
Functions
-
attributeToViewInlineConverter( __namedParameters ) → ( any, DowncastConversionApi ) => ( undefined | AttributeElement )
module:html-support/converters~attributeToViewInlineConverter
Attribute-to-view conversion helper applying attributes to view element preserved on
$text
.Parameters
__namedParameters : DataSchemaInlineElementDefinition
Returns
( any, DowncastConversionApi ) => ( undefined | AttributeElement )
Returns a conversion callback.
-
createObjectView( viewName, modelElement, writer ) → Element
module:html-support/converters~createObjectView
Creates object view element from the given model element.
Parameters
viewName : string
modelElement : Element
writer : DowncastWriter
Returns
-
emptyInlineModelElementToViewConverter( __namedParameters, [ asWidget ] ) → ElementCreatorFunction
module:html-support/converters~emptyInlineModelElementToViewConverter
Conversion helper converting an empty inline model element to an HTML element or widget.
Parameters
__namedParameters : DataSchemaInlineElementDefinition
[ asWidget ] : boolean
Returns
-
modelToViewBlockAttributeConverter( __namedParameters ) → ( DowncastDispatcher ) => void
module:html-support/converters~modelToViewBlockAttributeConverter
Model-to-view conversion helper applying attributes preserved in
html*Attributes
attribute for block elements.Parameters
__namedParameters : DataSchemaBlockElementDefinition
Returns
( DowncastDispatcher ) => void
Returns a conversion callback.
-
toObjectWidgetConverter( editor, __namedParameters ) → ElementCreatorFunction
module:html-support/converters~toObjectWidgetConverter
Conversion helper converting an object element to an HTML object widget.
Parameters
editor : Editor
__namedParameters : DataSchemaInlineElementDefinition
Returns
ElementCreatorFunction
Returns a conversion callback.
-
viewToAttributeInlineConverter( __namedParameters, dataFilter ) → ( UpcastDispatcher ) => void
module:html-support/converters~viewToAttributeInlineConverter
View-to-attribute conversion helper preserving inline element attributes on
$text
.Parameters
__namedParameters : DataSchemaInlineElementDefinition
dataFilter : DataFilter
Returns
( UpcastDispatcher ) => void
Returns a conversion callback.
-
viewToModelBlockAttributeConverter( __namedParameters, dataFilter ) → ( UpcastDispatcher ) => void
module:html-support/converters~viewToModelBlockAttributeConverter
View-to-model conversion helper preserving allowed attributes on block element.
All matched attributes will be preserved on
html*Attributes
attribute.Parameters
__namedParameters : DataSchemaBlockElementDefinition
dataFilter : DataFilter
Returns
( UpcastDispatcher ) => void
Returns a conversion callback.
-
viewToModelObjectConverter( __namedParameters ) → ( Element, UpcastConversionApi ) => Element
module:html-support/converters~viewToModelObjectConverter
View-to-model conversion helper for object elements.
Preserves object element content in
htmlContent
attribute.Parameters
__namedParameters : DataSchemaDefinition
Returns
( Element, UpcastConversionApi ) => Element
Returns a conversion callback.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.