mindroute / quill-autoformat

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

Disable mentions or hashtags #6

Open jandresampaio opened 3 years ago

jandresampaio commented 3 years ago

Hi,

From the description I've assumed we would disable those formattings settings autoFormat: { mention: false, hashtag: false } but it seems it's still being used.

When tried to paste an #something it returns the following error:

Uncaught TypeError: Cannot read property 'global' of undefined
    at A (quill-autoformat.js:1)
    at quill-autoformat.js:1
    at Array.forEach (<anonymous>)
    at quill-autoformat.js:1
    at quill.js:9084
    at Array.reduce (<anonymous>)
    at traverse (quill.js:9083)
    at quill.js:9088
    at NodeList.reduce (<anonymous>)
    at traverse (quill.js:9087)

image

klasjersevi commented 3 years ago

That is the way it should work. Just make sure you have Quill 2.0 and make sure you spell autoformat all in lowercase. It's been a while since I used this, so I'll take a look and see if something has changed.