| Re: Oledrion and CKEditor : how to compress html ? |
| by bumciach on 2010/12/20 14:36:49 Quote:
You can also add this to file ckeditor/module/config.oledrion.js (it's placeholder for module specific configurations in CKEditor). In case when updating CKEditor file ckeditor/config.js will be replaced by the original one. |
| Re: Oledrion and CKEditor : how to compress html ? |
| by novlang1984 on 2010/12/19 16:02:42 I'm sorry... solution was here Just add this to ckeditor/config.js le="color: #000000"><?php CKEDITOR.on( 'instanceReady', function( ev ) { ev.editor.dataProcessor.writer.setRules('p', { indent : false, breakBeforeOpen : false, breakAfterOpen : false, breakBeforeClose: false, breakAfterClose : false } ); ev.editor.dataProcessor.writer.setRules('ol', { indent : false, breakBeforeOpen : false, breakAfterOpen : false, breakBeforeClose: false, breakAfterClose : false } ); ev.editor.dataProcessor.writer.setRules('ul', { indent : false, breakBeforeOpen : false, breakAfterOpen : false, breakBeforeClose: false, breakAfterClose : false } ); ev.editor.dataProcessor.writer.setRules('li', { indent : true, breakBeforeOpen : false, breakAfterOpen : false, breakBeforeClose: false, breakAfterClose : false } ); }); (if it not works, clean cache) |
| Oledrion and CKEditor : how to compress html ? |
| by novlang1984 on 2010/12/19 15:08:09 I use Oledrion with CKEditor. There is a simple change to do : oledrion/xoops_version.php le="color: #000000"><?php /** * Editor to use */ $cpto++; $modversion['config'][$cpto]['name'] = 'bl_form_options'; $modversion['config'][$cpto]['title'] = "_MI_OLEDRION_FORM_OPTIONS"; $modversion['config'][$cpto]['description'] = '_MI_OLEDRION_FORM_OPTIONS_DESC'; $modversion['config'][$cpto]['formtype'] = 'select'; $modversion['config'][$cpto]['valuetype'] = 'text'; $modversion['config'][$cpto]['options'] = array( _MI_OLEDRION_FORM_DHTML=>'dhtmltextarea', _MI_OLEDRION_FORM_COMPACT=>'textarea', _MI_OLEDRION_FORM_HTMLAREA=>'htmlarea', _MI_OLEDRION_FORM_KOIVI=>'koivi', _MI_OLEDRION_FORM_FCK=>'fckeditor', _MI_OLEDRION_FORM_TINYEDITOR=>'tinyeditor', // Addition _MI_OLEDRION_FORM_CK=>'CKEditor', 'tinymce' => 'tinymce' ); $modversion['config'][$cpto]['default'] = 'dhtmltextarea'; oledrion/class/utils.php le="color: #000000"><?php case 'ckeditor': if ( is_readable(XOOPS_ROOT_PATH . '/class/ckeditor/ckeditor.php')) { require_once(XOOPS_ROOT_PATH . '/class/ckeditor/ckeditor.php'); $editor = new XoopsFormFckeditor($caption, $name, $value); } break; Troubleshooting : html code is rendered with white spaces on front page. Example : Quote: <p> If I compress html code before submit form (Source window), it is displayed fine. I have looked for a solution with CKEditor faq and forums. It seems that this matter is related to Xoops (at least Oledrion module, because if I compare with xNews module, there is a checkbox bellow the submit form to compress html code). I don't know where to look for now ![]() Thanks for help !! |