The forum operates in read-only mode. Please head to StackOverflow for support.
Customer and Community Manager, CKSource Follow us on: Facebook, Twitter, LinkedIn If you think you found a bug in CKEditor, read this!
Sebstefanov wrote:Can you clarify? Do you want or don't want CKEditor to add <br>?
CKEDITOR.config.fillEmptyBlocks = false; CKEDITOR.config.fullPage = false;
Sebstefanov wrote:Your page might generate an empty block at the end. Try adding this code in config.js:CKEDITOR.config.fillEmptyBlocks = false; CKEDITOR.config.fullPage = false;
/*Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.For licensing, see LICENSE.html or http://ckeditor.com/license*/CKEDITOR.editorConfig = function( config ){config.filebrowserBrowseUrl = '/public/js/ckeditor/ckfinder/ckfinder.html';config.filebrowserImageBrowseUrl = '/public/js/ckeditor/ckfinder/ckfinder.html?Type=Images';config.filebrowserFlashBrowseUrl = '/public/js/ckeditor/ckfinder/ckfinder.html?Type=Flash'; config.fillEmptyBlocks = false;config.fullPage = false;config.language = 'zh-cn'; config.filebrowserWindowWidth = '800'; config.filebrowserWindowHeight = '500'; config.resize_enabled = false; config.toolbar = 'Custom'; config.toolbar_Custom = [ ['Source'], ['Maximize'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord','SpellChecker'], ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link', 'Unlink', 'Anchor','Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak','Iframe','SpecialChar'], ['Undo','Redo','Font','FontSize','TextColor','BGColor'], ]; config.toolbar_Full = [ ['Source','-','Save','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'], '/', ['Styles','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize', 'ShowBlocks','-','About'] ];};
Then try using the writer function: http://docs.cksource.com/CKEditor_3.x/D ... FormattingOr a replace function: http://stackoverflow.com/questions/1092 ... utput-html
Re: ckeditor automatically add the br
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: ckeditor automatically add the br
Default has been added to the br. I want to remove the last br.
Thanks.
Re: ckeditor automatically add the br
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: ckeditor automatically add the br
Still behind in the content with a <br />
Re: ckeditor automatically add the br
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
config.filebrowserBrowseUrl = '/public/js/ckeditor/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = '/public/js/ckeditor/ckfinder/ckfinder.html?Type=Images';
config.filebrowserFlashBrowseUrl = '/public/js/ckeditor/ckfinder/ckfinder.html?Type=Flash';
config.fillEmptyBlocks = false;
config.fullPage = false;
config.language = 'zh-cn';
config.filebrowserWindowWidth = '800';
config.filebrowserWindowHeight = '500';
config.resize_enabled = false;
config.toolbar = 'Custom';
config.toolbar_Custom = [
['Source'],
['Maximize'],
['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord','SpellChecker'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link', 'Unlink', 'Anchor','Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak','Iframe','SpecialChar'],
['Undo','Redo','Font','FontSize','TextColor','BGColor'],
];
config.toolbar_Full = [
['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About']
];
};
Re: ckeditor automatically add the br
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br />
Re: ckeditor automatically add the br
Then try using the writer function: http://docs.cksource.com/CKEditor_3.x/D ... Formatting
Or a replace function: http://stackoverflow.com/questions/1092 ... utput-html
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!