select2 tags and ajax inside the editor modal.
select2 tags and ajax inside the editor modal.
Hi guys,
I have been struggling for a while now to get a select2 (v4.0.4) with tags/multiple working properly on an editor field inside the popup. I want to be able to create an entry by pulling data from the backend ajax only at the beginning and store it in a variable and search from there. then I want to be able to add new tags if they don't exist in the initial data pulled. And then push it to server and re-populate the tags properly when opening an edit window.
Without tags I have it working just fine and I have been able to solve all of these in some form with tags but not all together.
Does someone have a working example for the current 1.6.5 editor modal with one or more fields using select2 4.0.4 and tags, with initial data populated via ajax or just continuous searching via ajax?
Answers
Hi,
Thanks for posting this. I don't have a working example yet, but I'll cook one up tomorrow and let you know how I get on with it.
Regards,
Allan