Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 - 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
'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';[/code] [b]oledrion/class/utils.php[/b] [code]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;[/code] [color=CC0000]Troubleshooting : html code is rendered with white spaces on front page.[/color] Example : [quote]   The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. [/quote] 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 !! [/quote]" />

Re: Oledrion and CKEditor : how to compress html ?
by bumciach on 2010/12/20 14:36:49

Quote:

novlang1984 wrote:
Just add this to ckeditor/config.js

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>
&nbsp;</p>
The standard chunk of Lorem Ipsum</p>
<ol>
<li>
used since the 1500s is reproduced below for those interested.</li>
<li>
Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum"</li>
<li>
by Cicero are also reproduced in their exact original form,</li>
<li>
accompanied by English versions from the 1914 translation by H. Rackham.</li>
</ol>


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 !!

Who's Online

188 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits