paste-as-plain-text
v1.0.2
Published
Switches a html contenteditable element to "paste as plain text only" mode.
Downloads
100
Maintainers
Readme
paste-as-plain-text
Switches a html contenteditable element to "paste as plain text only" mode.
Demo
https://webdeveloper.pro/demo/paste-as-plain-text/demo.html
Install
npm install paste-as-plain-text --save
Setup
import pasteAsPlainText from 'paste-as-plain-text';
Usage
<div id="js-textarea" contenteditable="true"></div>
pasteAsPlainText(
document.getElementById('js-textarea')
);
License
MIT