Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sergeynilov opened this issue Aug 24, 2021 · 0 comments
Open

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

sergeynilov opened this issue Aug 24, 2021 · 0 comments

Comments

@sergeynilov
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant