Ask example codeing of Editor and Select2 (multi-selection) doing predefined select2 ?
Ask example codeing of Editor and Select2 (multi-selection) doing predefined select2 ?

in Editor
Is there any example for Editor and Select2 showing pre-selected multi items ?
as the image shown
....
This discussion has been closed.
Answers
I haven't got an example, and I'm not too familiar with Select2, but you should be able to set the value in the
initCreate
, either withfield().set()
or like this example here, which is setting a default value of "London" for new records in theoffice
field.Colin
Hi colin, thanks for reply, However, is there any Editor with field: Select2 for multi selection example ? Actually I need showing pre-selected multi items example ...
This thread may help - it seems to be asking the same question with a "Eureka" at the end!
Colin