. */ // CKEDITOR.ENTER_BR 'enterMode: 2', // CKEDITOR.ENTER_P 'shiftEnterMode: 1', /* Don't load the config.js file. */ 'customConfig: ""', /* Remove elementspath to provide more space. */ 'removePlugins: "elementspath"', /* Disable resize of the textarea. */ 'resize_enabled: false', /* Disable spell check as you type. */ 'scayt_autoStartup: false', /* Convert HTML entities. */ 'entities: false', /* Set language to Horde language. */ 'language: "' . Horde_String::lower($language) . '"', /* Default display font. This is NOT the font used to send * the message, however. */ 'contentsCss: "body { font-family: ' . $font_family . '; font-size: ' . $font_size . '; }"', 'font_defaultLabel: "' . $font_family . '"', 'fontSize_defaultLabel: "' . $font_size . '"' ); $buttons = $prefs->getValue('ckeditor_buttons'); if (!empty($buttons)) { $config[] = 'toolbar: ' . $buttons; } $page_output->addInlineScript(array( 'window.IMP = window.IMP || {}', 'IMP.ckeditor_config = {' . implode(',', $config) . '}' )); } }