reff
Junior Member
Posts: 25
Joined: May 2011
|
WYSIWYG question
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?
Hail to get-simple developers!
|
|
|
|
shawn_a
Developer
Posts: 2,029
Joined: Sep 2011
|
WYSIWYG question
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
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
|
|
|
|
n00dles101
Administrator
Posts: 974
Joined: Aug 2009
|
WYSIWYG question
My Github Repos: Github
Website: DigiMute
|
|
|
|
shawn_a
Developer
Posts: 2,029
Joined: Sep 2011
|
WYSIWYG question
It's HTML writer output formatting
http://docs.cksource.com/CKEditor_3.x/De...Formatting
No clue how to modify this yet
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
|
|
|
|
Connie
Super Moderator
Posts: 2,686
Joined: Feb 2011
|
WYSIWYG question
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
|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
|
|
|
|