Commit 8df2615d authored by kevinquillen's avatar kevinquillen

Fix a bug where using the ! placeholder throws an error. Replace it with the @ placeholder.

parent aee15dcf
...@@ -65,7 +65,7 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab ...@@ -65,7 +65,7 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
$form['highlight_style'] = array( $form['highlight_style'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => 'highlight.js Style', '#title' => 'highlight.js Style',
'#description' => t('Select a style to apply to all highlighted code snippets. You can preview the styles at !link.', array('!link' => \Drupal::l('https://highlightjs.org/static/demo', Url::fromUri('https://highlightjs.org/static/demo/')))), '#description' => $this->t('Select a style to apply to all highlighted code snippets. You can preview the styles at @link.', array('@link' => \Drupal::l('https://highlightjs.org/static/demo', Url::fromUri('https://highlightjs.org/static/demo/')))),
'#options' => $styles, '#options' => $styles,
'#default_value' => !empty($settings['plugins']['codesnippet']['highlight_style']) ? $settings['plugins']['codesnippet']['highlight_style'] : 'arta', '#default_value' => !empty($settings['plugins']['codesnippet']['highlight_style']) ? $settings['plugins']['codesnippet']['highlight_style'] : 'arta',
); );
......
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