quill-plain-text-paste

1.0.1 • Public • Published

Workaround for Quill editor

Issue – on mobile Quill.js flickers when you paste.

See github issue : https://github.com/quilljs/quill/issues/1374

Solution by wonderful Thomas Dao


Usage

# in your project root 
yarn add quill-plain-text-paste
// in your app – import and register the module
import PlainTextClipboard from 'quill-plain-text-paste'
 
Quill.register('modules/clipboard', PlainTextClipboard);

PS. you might want to add some UA detection and enable the code only for certain mobile devices

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i quill-plain-text-paste

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

1.78 kB

Total Files

3

Last publish

Collaborators

  • ognivo