Examples

Cleaning pasted content

By default, RichTextEditor will automatically detect/clean the dirty pasted content. You have full control over how contributors paste content into the Editor. For example, you can disable the paste function, force pasting as plain text or prompt the user about cleaning up the content when pasting from MS Word.

Richtexteditor allows you disable the paste function, force pasting as plain text or automatically clean up the content when pasting from MS Word.

Demo Code:

<link rel="stylesheet" href="/richtexteditor/rte_theme_default.css" />
<script type="text/javascript" src="/richtexteditor/rte.js"></script>
<script type="text/javascript" src='/richtexteditor/plugins/all_plugins.js'></script>

<div id="div_editor1">
	<p>Richtexteditor allows you disable the paste function, force pasting as plain text or automatically clean up the content when pasting from MS Word.</p>
	<p><img src='/images/editor-image.png' /></p>
</div>

<script>
	var editor1cfg = {}
	var editor1 = new RichTextEditor("#div_editor1", editor1cfg);
</script>