Skip to content
Snippets Groups Projects
Commit ce6ac838 authored by Hannes Kirsman's avatar Hannes Kirsman Committed by Lucas Hedding
Browse files

Issue #3368573 by hkirsman, heddn: Can't enable indent block

parent 347e61a1
No related branches found
No related tags found
1 merge request!7Issue #3368573: Can't enable indent block
......@@ -120,13 +120,13 @@ class IndentBlock extends CKEditorPluginBase implements CKEditorPluginContextual
$form['enable'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Enable indentation on paragraphs'),
'#default_value' => !empty($settings['plugins']['indentblock']) && $settings['plugins']['indentblock']['enable'] === 1 ? $settings['plugins']['indentblock']['enable'] : 0,
'#default_value' => !empty($settings['plugins']['indentblock']) && $settings['plugins']['indentblock']['enable'] === TRUE ? $settings['plugins']['indentblock']['enable'] : FALSE,
);
if ($this->getLibraryURL() == '') {
$form['enable']['#disabled'] = TRUE;
$form['enable']['#description'] = $this->t('CKEditor IndentBlock cannot be enabled, as the plugin has not been found in any libraries path!');
$form['enable']['#default_value'] = 0;
$form['enable']['#default_value'] = FALSE;
}
return $form;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment