Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CKeditor Code line Breaks Help
#19
This is what I added to 3.2.4 config

PHP Code:
// Override default block element source formatting
CKEDITOR.on'instanceReady', function( ev ) {
    var 
blockTags = ['div','h1','h2','h3','h4','h5','h6','p','pre','li','blockquote','ul','ol','table','thead','tbody','tfoot','td','th',];
    var 
rules = {
        
indent           true,
        
breakBeforeOpen  true,
        
breakAfterOpen   false,
        
breakBeforeClose false,
        
breakAfterClose  true
    
};

    for (var 
i=0i<blockTags.lengthi++) {
        
ev.editor.dataProcessor.writer.setRulesblockTags[i], rules );
    }
}); 
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:07:39
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 00:10:39
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:12:46
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 00:13:27
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 00:14:43
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:16:27
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 00:19:11
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:20:25
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:23:41
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 00:25:54
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:28:16
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 00:31:59
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:35:13
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 00:43:13
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 00:47:34
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 01:22:46
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 01:30:53
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 01:32:41
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 01:48:54
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 01:41:15
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 02:02:20
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 02:28:22
RE: CKeditor Code line Breaks Help - by shawn_a - 2013-08-29, 02:33:54
RE: CKeditor Code line Breaks Help - by lnickel - 2013-08-29, 03:07:18



Users browsing this thread: 3 Guest(s)