\Kendo\UI\EditorPasteCleanup

A PHP class representing the pasteCleanup setting of Editor.

Methods

all

All HTML tags are stripped leaving only the text in the content.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->all(true);
?>

css

Remove style and class attributes from the pasting content.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->css(true);
?>

custom

Use a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->custom(new \Kendo\JavaScriptFunction('function() { }'));
?>

keepNewLines

Strip all HTML tags but keep new lines in the pasted content.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->keepNewLines(true);
?>

msAllFormatting

Remove all special formatting from MS Word content like font-name, font-size and MS Word specific tags.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->msAllFormatting(true);
?>

msConvertLists

Converts MS Word pasted content into HTML lists.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->msConvertLists(true);
?>

msTags

Removes all MS Word specific tags and cleans up the extra metadata.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->msTags(true);
?>

none

Prevent any cleaning up of the content.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->none(true);
?>

span

Remove all span elements from the content, ensuring much of the inline formatting is removed.

Returns

\Kendo\UI\EditorPasteCleanup

Parameters

$value boolean

Example

<?php
$pasteCleanup = new \Kendo\UI\EditorPasteCleanup();
$pasteCleanup->span(true);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy