CKEDITOR, calling a FullScreen action outside of CKEDITOR

Anyone with CKEDitor experience knows if JavaScript can be used to invoke using the Full Screen function / action outside of CKEDITOR?

thanks

+5
source share
3 answers

I think you might have tried the solution here: http://cksource.com/forums/viewtopic.php?f=11&t=14319

Perhaps it will be something like:

var editor = CKEDITOR.instances[instanceName];
editor.execCommand('maximize');
+9
source

I tested @Magicgunnar, but I have problems to figure this out and run it (from the moment it starts) (!). This code is more understandable and correct. Tested for 3.5.X:

CKEDITOR.on('instanceReady',
   function( evt ) {
      var instanceName = 'textArea_id'; // the HTML id configured for editor
      var editor = CKEDITOR.instances[instanceName]; 
      editor.execCommand('maximize');
   }
 );
+3
source

jquery- ckeditor,

$(".fullscreen_link").live("click", function () {
        var editor = $('.my_ckeditor').ckeditorGet();
               editor.execCommand('maximize');
    });
+2

All Articles