Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CKeditor Line Breaks & Indent Issues
#11
(2013-05-21, 16:10:52)Connie Wrote:
(2013-05-21, 15:57:58)reticent Wrote: How do I have the same function encompass the extra code as previously quoted?

sorry, what is "encompass"? I do not know that word.

you show us a code excerpt which defines the dialogue-functionality.

What was discussed here is the formatting of the HTML-output, quite a different topic.


There is an example in the wiki:
http://get-simple.info/wiki/how_to:edito...stom_files

and this example file has this part:
PHP 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'];
var 
rules = {
indent false,
breakBeforeOpen false,
breakAfterOpen false,
breakBeforeClose false,
breakAfterClose true
};

for (var 
i=0i<blockTags.lengthi++) {
ev.editor.dataProcessor.writer.setRulesblockTags[i], rules );
}

}); 

and it is exactly described how to use and configure a custom configuration file for the editor

so I think you can start with that. If you have problems, ask!


The code suggested has the same function name as already existing code...
Reply


Messages In This Thread
RE: CKeditor Line Breaks & Indent Issues - by reticent - 2013-05-21, 16:27:17
CKeditor Line Breaks & Indent Issues - by Connie - 2012-10-16, 22:06:52
CKeditor Line Breaks & Indent Issues - by Connie - 2012-10-17, 06:16:48
CKeditor Line Breaks & Indent Issues - by shawn_a - 2012-10-17, 07:00:00
CKeditor Line Breaks & Indent Issues - by Connie - 2012-10-17, 17:42:44



Users browsing this thread: 1 Guest(s)