How to dynamically add options to  list in CKeditor dialog
You can pass data to ckeditor via the getConfig method in your plugin, e.g.:

public function getConfig(Editor $editor) {
  return [
    'pluginName_options' =&gt; $this-&gt;buildOptions()
  ];
}


And in the JS:

items: editor.config.pluginName_options