Pixabay / jQuery-tagEditor

A powerful and lightweight tag editor plugin for jQuery.
501 stars 164 forks source link

It's possible to add a readonly feature ? #148

Open pierrelesek opened 6 years ago

pierrelesek commented 6 years ago

Hello, This javascript library is very great.

I have only 1 suggestion, it's to add a readonly parameters to make the tag not deletable (for a simple user who can't delete tags)

Thank you, i will try to develop the feature in //

donalod commented 6 years ago

A also looking for a super simple way to prevent editing.

pierrelesek commented 6 years ago

Yes @donalod

i want to prevent editing for some users for example :)

abenfield commented 5 years ago

I'm facing the same problem. Did you guys figure out a way for read only? Thanks

Edit: My solution, albeit not an elegant solution, but it gets the job done for my use was to add a class to jquery-tag-editor.css that would set pointer events to none and give the class to the parent div surrounding the tag editor and on the tag editor itself. .read-only-tags { pointer-events: none; }