GetSimple Support Forum

Full Version: WYSIWYG question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Cheers

The built-in editor's disadvantage is simple: it always tries to "beautify" the source adding extra space characters in paragraphs. This is why it sucks! I don't need that damn return+tab characters after opening <p> tag for example. The result code loses it's beauty, it becomes less compact and less readable.

Who knows how to fix that?
I've seen this discussed somewhere it's a ck editor issue and can be changed somehow, break after break before or something. It is indeed very strange form of beautifying and is not useful at all.

I'll post it if I find it . , a ck expert will probably chime in
Think its entermode , check here for details

http://get-simple.info/wiki/how_to:edito...re_options

Mike.
It's HTML writer output formatting
http://docs.cksource.com/CKEditor_3.x/De...Formatting

No clue how to modify this yet
reff Wrote:Who knows how to fix that?

I know it.

Do you want to know whether somebody knows it or do you want the solution? ;=)

well, here it comes.

You can define the tags which should have indent or not, it is a setting in a separate config-file:
Code:
// from: http://help.pixelandtonic.com/brandonkelly/topics/how_do_i_set_output_formatting_writer_rules?from_gsfn=true
CKEDITOR.on( 'instanceReady', function( ev ) {
var blockTags = ['div','h1','h2','h3','h4','h5','h6','p','pre','ul','li','table','td','tr','blockquote'];
var rules = {
indent : false,
breakBeforeOpen : true,
breakAfterOpen : false,
breakBeforeClose : false,
breakAfterClose : false
};

try and experiment which settings fits the best for you.

how to set a custom configuration file for the editor is described in the WIKI.

Cheers, Connie