Skip to content
Snippets Groups Projects
Commit 0f873494 authored by mkesicki's avatar mkesicki
Browse files

[#1885938] by michal_cksource: Disable div based editor on default

parent 93e97e26
No related branches found
No related tags found
No related merge requests found
2012-12-27
2013-01-11
New stable release 7.x-1.x
Bug fixes:
[#1885938] by michal_cksource: Disable div based editor on default
[#1872064] by dczepierga: Undefined index: loadPlugins in ckeditor_modules_disabled() and ckeditor_modules_uninstalled()
2012-12-22
......
......@@ -875,7 +875,7 @@ function ckeditor_admin_profile_form($form, $form_state, $profile = NULL) {
$form['appearance']['use_divarea'] = array(
'#type' => 'radios',
'#title' => t('"Div-based" editor'),
'#default_value' => !empty($profile->settings['use_divarea']) ? $profile->settings['use_divarea'] : 't',
'#default_value' => !empty($profile->settings['use_divarea']) ? $profile->settings['use_divarea'] : 'f',
'#options' => array(
't' => t('Enabled'),
'f' => t('Disabled')
......
......@@ -830,8 +830,8 @@ function ckeditor_profile_settings_compile($global_profile, $profile) {
}
//add support for divarea plugin from CKE4
if (((isset($conf['use_divarea']) && $conf['use_divarea'] == 't') || !isset($conf['use_divarea'])) && file_exists($editor_local_path . '/plugins/divarea/plugin.js')) {
$settings['loadPlugins']['divarea'] = array('name' => 'divarea', 'path' => $editor_path . '/plugins/divarea/', 'buttons' => FALSE, 'default' => 't');
if (isset($conf['use_divarea']) && $conf['use_divarea'] == 't' && file_exists($editor_local_path . '/plugins/divarea/plugin.js')) {
$settings['loadPlugins']['divarea'] = array('name' => 'divarea', 'path' => $editor_path . '/plugins/divarea/', 'buttons' => FALSE, 'default' => 'f');
}
if (isset($conf['html_entities']) && $conf['html_entities'] == 'f') {
......
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