Pixabay / jQuery-tagEditor

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

How not permit user manual editing add new tags? #170

Open sergeynilov opened 3 years ago

sergeynilov commented 3 years ago

I added jQuery-tagEditor into my laravel 8/jquery 3.4 app and looking art examples at https://goodies.pixabay.com/jquery/tag-editor/demo.html I did not find if there is a way to select tags only from autocomplete listing, not permit user manual editing add new tags?

I have code:

            $('#education_tags').tagEditor({
                delimiter: ',',
                initialTags: @json($initialTagsList),
                placeholder: 'Select tags ...',
                autocomplete: {
                    delay: 0,
                    position: {
                        collision: 'flip'
                    },
                    source: @json($tagsList),
                },
                clickDelete: false,
                beforeTagSave: beforeTagSavecb,
                beforeTagDelete: beforeTagDeletecb,
                onChange: onChangecb
            });

I suppose property I need to disable is called “edit in place”, but how can I disable it ?

Thanks!