EditorSerializationSettingsBuilder
Methods
Custom(System.String)
Define custom serialization for the editable content. The method accepts a single parameter as a string and is expected to return a string.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.
Custom(System.Func)
Define custom serialization for the editable content. The method accepts a single parameter as a string and is expected to return a string.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.
Entities(System.Boolean)
Indicates whether the characters outside the ASCII range will be encoded as HTML entities. By default, they are encoded.
Parameters
value - System.Boolean
The value for Entities
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.
OptimizeTags(System.Boolean)
Indicates whether optizable tags should be removed from the DOM. Currently, optimizable tags are span and font elements with no attributes and no decoration or formatting applied (via inline styles/attributes).
Parameters
value - System.Boolean
The value for OptimizeTags
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.
OptimizeTags()
Indicates whether optizable tags should be removed from the DOM. Currently, optimizable tags are span and font elements with no attributes and no decoration or formatting applied (via inline styles/attributes).
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.
Scripts(System.Boolean)
Indicates whether inline scripts will be serialized and posted to the server.
Parameters
value - System.Boolean
The value for Scripts
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.
Scripts()
Indicates whether inline scripts will be serialized and posted to the server.
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.
Semantic(System.Boolean)
Indicates whether the font styles will be saved as semantic (strong / em / span) tags, or as presentational (b / i / u / font) tags. Used for outputting content for legacy systems.
Parameters
value - System.Boolean
The value for Semantic
RETURNS
Returns the current EditorSerializationSettingsBuilder instance.