|
|
@ -26,8 +26,22 @@ |
|
|
|
|
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
beforeInit: function( editor ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Adapt some critical editor configuration for better support
|
|
|
|
|
|
|
|
// of BBCode environment.
|
|
|
|
|
|
|
|
var config = editor.config; |
|
|
|
|
|
|
|
CKEDITOR.tools.extend( config, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
enterMode : CKEDITOR.ENTER_BR, |
|
|
|
|
|
|
|
basicEntities: false, |
|
|
|
|
|
|
|
entities : false, |
|
|
|
|
|
|
|
fillEmptyBlocks : false |
|
|
|
|
|
|
|
}, true ); |
|
|
|
|
|
|
|
}, |
|
|
|
init: function( editor ) |
|
|
|
init: function( editor ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
editor.addCommand('createreferencefootnotes', new CKEDITOR.dialogCommand('createreferencefootnotes', { |
|
|
|
editor.addCommand('createreferencefootnotes', new CKEDITOR.dialogCommand('createreferencefootnotes', { |
|
|
|
allowedContent: 'fn[value]' |
|
|
|
allowedContent: 'fn[value]' |
|
|
|
})); |
|
|
|
})); |
|
|
|