mindroute / quill-autoformat

Module for formatting and transforming text as you type in Quill
MIT License
68 stars 10 forks source link

Use with vue-quill-editor #4

Closed felixfrtz closed 5 years ago

felixfrtz commented 5 years ago

I am struggling a lot getting this plugin to work with https://github.com/surmon-china/vue-quill-editor.

The problem comes down to:

Uncaught Error: [Parchment] Unable to create hashtag blot
    at new ParchmentError (quill.js?9339:148)

This error comes up upon typing a hashtag. Any idea?

klasjersevi commented 5 years ago

Yes, vue-quill-editor uses Quill 1.3.4 while this is made for Quill 2.0.0-dev.3.

felixfrtz commented 5 years ago

Too bad, any idea which calls need to be adjusted to make it work with the current production version of quill? I already found that new Attributor() should be new Attributor.Attribute(), this brings me a step closer. The blot error as above still persists.

felixfrtz commented 5 years ago

Nevermind. Instead trying to downgrade your work, I decided to actually fork vue-quill-editor and upgrade it.

For reference: This can be found here https://www.npmjs.com/package/@voicehub/vue-quill-editor https://github.com/voicehub-io/vue-quill-editor