* the code is getting mangled, if a mod could make the changes as i do not know how to fix it *
The following code prevents stripping for {geshibot}{/geshibot} and {code}{/code} tags.
I am unsure if entities and htmlencodeoutput are required, feedback would be nice.
All you have to do is swap the code in
/plugins/editors/jckeditor/config.js
for the following:
| Code: |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
// The following work outside this function
config.htmlEncodeOutput = false;
config.entities = false;
config.protectedsource.push( /{code[\s\S]*?}[\s\S]*?{\/code}/g ) ; // Protects all code between code tag
config.protectedsource.push( /{geshibot[\s\S]*?}[\s\S]*?{\/geshibot}/g ) ; // Protects all code between GESHI tags
};
|