\Kendo\UI\EditorSerialization
A PHP class representing the serialization setting of Editor.
Methods
custom
Define custom serialization for the editable content. The method accepts a single parameter as a string and is expected to return a string.
Returns
\Kendo\UI\EditorSerialization
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$serialization = new \Kendo\UI\EditorSerialization();
$serialization->custom(new \Kendo\JavaScriptFunction('function() { }'));
?>
entities
Indicates whether the characters outside the ASCII range will be encoded as HTML entities. By default, they are encoded.
Returns
\Kendo\UI\EditorSerialization
Parameters
$value boolean
Example
<?php
$serialization = new \Kendo\UI\EditorSerialization();
$serialization->entities(true);
?>
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
\Kendo\UI\EditorSerialization
Parameters
$value boolean
Example
<?php
$serialization = new \Kendo\UI\EditorSerialization();
$serialization->optimizeTags(true);
?>
scripts
Indicates whether inline scripts will be serialized and posted to the server.
Returns
\Kendo\UI\EditorSerialization
Parameters
$value boolean
Example
<?php
$serialization = new \Kendo\UI\EditorSerialization();
$serialization->scripts(true);
?>
semantic
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.
Returns
\Kendo\UI\EditorSerialization
Parameters
$value boolean
Example
<?php
$serialization = new \Kendo\UI\EditorSerialization();
$serialization->semantic(true);
?>