Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WYSIWYG question
Author Message
reff Offline
Junior Member

Posts: 25
Joined: May 2011
2012-04-01 09:30:01
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!
(This post was last modified: 2012-04-01 09:33:44 by khan0000999563.)
Visit this user's website Find all posts by this user Quote this message in a reply
shawn_a Offline
Developer

Posts: 2,029
Joined: Sep 2011
2012-04-01 09:39:45
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
Visit this user's website Find all posts by this user Quote this message in a reply
n00dles101 Offline
Administrator

Posts: 974
Joined: Aug 2009
2012-04-01 09:42:06
WYSIWYG question
Think its entermode , check here for details

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

Mike.

My Github Repos: Github
Website: DigiMute
Visit this user's website Find all posts by this user Quote this message in a reply
shawn_a Offline
Developer

Posts: 2,029
Joined: Sep 2011
2012-04-01 09:58:04
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
Visit this user's website Find all posts by this user Quote this message in a reply
Connie Offline
Super Moderator

Posts: 2,686
Joined: Feb 2011
2012-04-01 17:07:23
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','block​quote'];
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
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)

Generate Leads from Documents vCard Hosting