Commit aee15dcf authored by kevinquillen's avatar kevinquillen

Override the CKEditor theme in getConfig so it does not apply default.css...

Override the CKEditor theme in getConfig so it does not apply default.css before the actual style is applied.
parent bd845a36
...@@ -34,7 +34,11 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab ...@@ -34,7 +34,11 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getConfig(Editor $editor) { public function getConfig(Editor $editor) {
return array(); $settings = $editor->getSettings();
return array(
'codeSnippet_theme' => !empty($settings['plugins']['codesnippet']['highlight_style']) ? $settings['plugins']['codesnippet']['highlight_style'] : 'default',
);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment