Textbox.io Paste Clean Demo
Tour demo for configuring paste options
HTML
<script src="https://clouddelivery.textbox.io/1/getEditor?apiKey=1wugguwjiatkm69xmt7w1den1mpvqkxi75mwfmb49lz89o4r"></script>
<div id="editablediv_pasteclean" style="height:340px">
<h2>Paste Cleanly</h2>
<p>Force your users to paste clean HTML only.</p>
<p>Formatting is removed from rich text before being pasted.</p>
<p>Structural elements such as headings and lists are retained.</p>
<p>Run this sample at <a href="http://jsfiddle.net/textboxio/u1z6e7mc/">http://jsfiddle.net/textboxio/u1z6e7mc/</a></p>
</div>
JavaScript
var config_pasteclean = {
css : {
// Set the editor styles
documentStyles : 'body {font-family:Lato, \'Open Sans\', sans-serif;}'
},
spelling : { url: 'http://spelling.ephox.com/' },
paste : {
style : 'retain' // Overrides default: 'prompt' for MS Office content
}
};
// Create a Textbox.io Editor for the matched element(s)
var editor_mobile = textboxio.replace('#editablediv_pasteclean', config_pasteclean);