Skip to content

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

@sergeynilov

Description

@sergeynilov

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions