I am using the following code in version 3.6.1:
Name and ID of my editor instance is editor. Also tried it as editor1.
I have tried it in the config.js file and in the replace javascript. In both cases it does not perform as expected.
For the life of me I cannot figure out what I am doing wrong. All I want to happen is for the editor window to open maximized.
Thank you for your assistance.
CKEDITOR.on('instanceReady', function( evt ) { var editor = evt.editor; editor.execCommand('maximize'); });
Name and ID of my editor instance is editor. Also tried it as editor1.
I have tried it in the config.js file and in the replace javascript. In both cases it does not perform as expected.
For the life of me I cannot figure out what I am doing wrong. All I want to happen is for the editor window to open maximized.
Thank you for your assistance.
Re: Maximize editor when loaded
Re: Maximize editor when loaded
Absoltely nothing. I know it can see the code because when I break it, the page shows up with just a normal text area window.
Re: Maximize editor when loaded
Re: Maximize editor when loaded
Only difference I can think of is that I am using it on a ColdFusion Page and pulling the content to be edited dynamically. I will give it a shot on an HTML only page and see what happens.
Re: Maximize editor when loaded
</body>
<script type="text/javascript">
//window.onload = function () {
CKEDITOR.replace('CKEditor1', { on: {
'instanceReady': function (evt) { evt.editor.execCommand('maximize'); }
}});
//}
</script>
</html>
Hi where to place this code
Hi Could you guide me on where to put this code?
Normally you would put
Normally you would put everything from <script type... to </script> right after </textarea>.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Thanks
Hi, Thanks. it worked.......
Maxmiize 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?