2013-05-21, 16:10:52
(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=0; i<blockTags.length; i++) {
ev.editor.dataProcessor.writer.setRules( blockTags[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!
|--
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18