<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
var oEditor = FCKeditorAPI.GetInstance( editorInstance.Name ) ;
oEditor.Commands.GetCommand(\'FitWindow\').Execute();
}
</script>How can I change this code to run on CKEditor 3.0RC?

Re: How to auto maximize on CKEditor 3.0
The FCK_OnComplete equivalent in v3 is the 'instanceReady' event, so you may use the following codes, we'll have APIs like this in documentation after v3 come to final release.
CKEDITOR.on('instanceReady', function( evt ) { var editor = evt.editor; ... });Re: How to auto maximize on CKEditor 3.0
But I still can not use this option.
How should this line be on Ckeditor 3.0?
Re: How to auto maximize on CKEditor 3.0
Re: How to auto maximize on CKEditor 3.0
CKEDITOR.on('instanceReady', function( evt ) { var editor = evt.editor; editor.execCommand('maximize'); });Re: How to auto maximize on CKEditor 3.0
Re: How to auto maximize on CKEditor 3.0
http://dev.fckeditor.net/ticket/4509
Re: How to auto maximize on CKEditor 3.0
with the latest version of ckeditor and got the following error:
happening at
I tried setting inside the config.js and inside my html code, but no luck. any ideas?
Re: How to auto maximize on CKEditor 3.0
I tried "hide - maximize - show", but can't get it to work with the events given by CKEditor.
Re: How to auto maximize on CKEditor 3.0
</body> <script type="text/javascript"> //window.onload = function () { CKEDITOR.replace('CKEditor1', { on: { 'instanceReady': function (evt) { evt.editor.execCommand('maximize'); } }}); //} </script> </html>Maximize for PHP?
Hi, I was trying to do this in PHP and got stuck. I tried it with.
$CKEditor->replace("editor1",$config,$events); where:
$events['instanceReady'] = 'function (ev) {
ev.editor.execCommand('maximize');
}';
This seemed like the right way to do this... Has anyone gotten it to work in PHP?