Answer the question
In order to leave comments, you need to log in
ckeditor plugin output in select?
Greetings, there is a plug-in, its task is simple, it displays a list and, when a name is selected, it is inserted into the editor.
https://codepen.io/anon/pen/rrWgXG
https://jsfiddle.net/xbhrtL71/
So he does his job.
But now it is necessary that it deduced the data from a DB. Ajax is used for this.
https://codepen.io/anon/pen/KBNjwa
https://jsfiddle.net/tkojc7hg/
Now there is no dropdown list on the select, it's empty. What's wrong? Where is the mistake?
there is this in ajax, it sort of displays the name, but not when choosing from the list (it is empty), but when clicking on the plugin itself in ckeditor
console.log(adminpanelHeroes[key].name);
I hope I explained it clearly)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question