Plugin ckeditor output to select?

Welcome, there is a plugin task is simple, displays a list and when you select any name in the inserts editor.
5b51cd9c19b42660132554.png
https://codepen.io/anon/pen/rrWgXG
https://jsfiddle.net/xbhrtL71/
So he copes with its task.
But now we need to remove data from the database. To do this, use ajax.
5b51cfaf875a1820949625.png
https://codepen.io/anon/pen/KBNjwa
https://jsfiddle.net/tkojc7hg/
Now select no the dropdown list, it's empty. What's wrong? Where is the error?
in ajax there is, it seems like it displays name, but not when you select from the list(it's empty), and when you click on the plugin in ckeditor
console.log(adminpanelHeroes[key].name);
I hope clearly explained)
June 3rd 19 at 19:35
0 answer

Find more questions by tags CKEditorJavaScriptAJAX