Commit c303fcff authored by kevinquillen's avatar kevinquillen

Reverting previous change per Wim Leers - paths to file should be relative and...

Reverting previous change per Wim Leers - paths to file should be relative and not require base_path().
parent bd840140
......@@ -23,7 +23,7 @@ function codesnippet_ckeditor_css_alter(array &$css, Editor $editor) {
$settings = $editor->getSettings();
if (!empty($settings['plugins']['codesnippet']['highlight_style'])) {
$css[] = base_path() . 'libraries/codesnippet/lib/highlight/styles/' . $settings['plugins']['codesnippet']['highlight_style'] . '.css';
$css[] = 'libraries/codesnippet/lib/highlight/styles/' . $settings['plugins']['codesnippet']['highlight_style'] . '.css';
}
}
......
......@@ -24,7 +24,7 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
* {@inheritdoc}
*/
public function getFile() {
return base_path() . 'libraries/codesnippet/plugin.js';
return 'libraries/codesnippet/plugin.js';
}
/**
......@@ -69,7 +69,7 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
return [
'CodeSnippet' => [
'label' => $this->t('CodeSnippet'),
'image' => base_path() . 'libraries/codesnippet/icons/codesnippet.png',
'image' => 'libraries/codesnippet/icons/codesnippet.png',
],
];
}
......
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