Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of https://github.com/maartendraijer/django-fiber

… into maartendraijer-master
  • Loading branch information...
commit 10273b5b815b82511bc4eb46bfb2658929e514cc 2 parents 31ae4ff + 8a11c94
@bheesink bheesink authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 fiber/static/fiber/js/ckeditor-3.6.2/config.js
View
17 fiber/static/fiber/js/ckeditor-3.6.2/config.js
@@ -9,3 +9,20 @@ CKEDITOR.editorConfig = function( config )
// config.language = 'fr';
// config.uiColor = '#AADC6E';
};
+
+// Extra settings to get rid of the extra whitespace within tags
+// More info on this subject here: http://cksource.com/forums/viewtopic.php?f=6&t=14493
+CKEDITOR.on('instanceReady', function(ev)
+{
+ var tags = ['p', 'ol', 'ul', 'li', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
+
+ for (var key in tags) {
+ ev.editor.dataProcessor.writer.setRules(tags[key], {
+ indent : false,
+ breakBeforeOpen : true,
+ breakAfterOpen : false,
+ breakBeforeClose : false,
+ breakAfterClose : true
+ });
+ }
+});
Please sign in to comment.
Something went wrong with that request. Please try again.