This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
how_to:editor_configuration_custom_files [2013/04/19 15:04] 127.0.0.1 external edit |
how_to:editor_configuration_custom_files [2013/05/21 10:15] yojoe [HTML or XHTML output ?] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | \\ | ||
======CKEditor Configuration Files====== | ======CKEditor Configuration Files====== | ||
Line 185: | Line 186: | ||
<code>{ name : 'Red table', element : 'table', styles : { 'background-color':'red' } },</code> | <code>{ name : 'Red table', element : 'table', styles : { 'background-color':'red' } },</code> | ||
+ | \\ | ||
+ | ===== HTML or XHTML output ? ===== | ||
+ | CKEditor by default wraps the content using XHTML tags (every tag has to be enclosed), and in such way formats it. \\ | ||
+ | To get rid of / in closing tags (to achieve for example [b]'' <br> ''[/b] [HTML] instead of [b]'' <br /> ''[/b] [XHTML]) upon saving page , \\ | ||
+ | you need to edit CKE's '' config.js '' file located in '' admin/template/js/ckeditor/ '' , and add below code: | ||
+ | |||
+ | <code> | ||
+ | CKEDITOR.on( 'instanceReady', function( ev ) | ||
+ | { | ||
+ | ev.editor.dataProcessor.writer.selfClosingEnd = '>'; | ||
+ | }); | ||
+ | </code> |