Skip to content

Miscellaneous

Plain Paste

plain-paste

Try it yourself:

When pastePlain option is enabled, Froala WYSIWYG HTML Editor filters the pasted content and keeps only plain text by removing all its rich formatting.


Edit in JSFiddle

HTML

<div id="froala-editor">
  <p>When <a href="../docs/options#pastePlain" title="pastePlain option" target="_blank">pastePlain</a> option is enabled, Froala WYSIWYG HTML Editor filters the pasted content and keeps only plain text by removing all its rich formatting.</p>
</div>

JAVASCRIPT

<script>
  $(function() {
    $('div#froala-editor').froalaEditor({
      pastePlain: true
    })
  });
</script>
File: 3763