tinymce.full.js
function (state) {
        var self = this, documentElement = document.documentElement, slowRendering, prefix = self.classPrefix, layoutRect;

        if (state != self._fullscreen) {
          $(window).on('resize', function () {
            var time;

            if (self._fullscreen) {
              // Time the layout time if it's to slow use a timeout to not hog the CPU
              if (!slowRendering) {
                time = new Date().getTime();

                var rect = DomUtils.getWindowSize();
                self.moveTo(0, 0).resizeTo(rect.w, rect.h);

                if ((new Date().getTime()) - time > 50) {
                  slowRendering = true;
                }
              } else {
                if (!self._timer) {
                  self._timer = Delay.setTimeout(function () {
                    var rect = DomUtils.getWindowSize();
                    self.moveTo(0, 0).resizeTo(rect.w, rect.h);

                    self._timer = 0;
                  }, 50);
                }
              }
            }
          });

          layoutRect = self.layoutRect();
          self._fullscreen = state;

          if (!state) {
            self.borderBox = BoxUtils.parseBox(self.settings.border);
            self.getEl('head').style.display = '';
            layoutRect.deltaH += layoutRect.headerH;
            $([documentElement, document.body]).removeClass(prefix + 'fullscreen');
            self.classes.remove('fullscreen');
            self.moveTo(self._initial.x, self._initial.y).resizeTo(self._initial.w, self._initial.h);
          } else {
            self._initial = { x: layoutRect.x, y: layoutRect.y, w: layoutRect.w, h: layoutRect.h };

            self.borderBox = BoxUtils.parseBox('0');
            self.getEl('head').style.display = 'none';
            layoutRect.deltaH -= layoutRect.headerH + 2;
            $([documentElement, document.body]).addClass(prefix + 'fullscreen');
            self.classes.add('fullscreen');

            var rect = DomUtils.getWindowSize();
            self.moveTo(0, 0).resizeTo(rect.w, rect.h);
          }
        }

        return self.reflow();
      }
function (state) {
        var self = this, documentElement = document.documentElement, slowRendering, prefix = self.classPrefix, layoutRect;

        if (state != self._fullscreen) {
          $(window).on('resize', function () {
            var time;

            if (self._fullscreen) {
              // Time the layout time if it's to slow use a timeout to not hog the CPU
              if (!slowRendering) {
                time = new Date().getTime();

                var rect = DomUtils.getWindowSize();
                self.moveTo(0, 0).resizeTo(rect.w, rect.h);

                if ((new Date().getTime()) - time > 50) {
                  slowRendering = true;
                }
              } else {
                if (!self._timer) {
                  self._timer = Delay.setTimeout(function () {
                    var rect = DomUtils.getWindowSize();
                    self.moveTo(0, 0).resizeTo(rect.w, rect.h);

                    self._timer = 0;
                  }, 50);
                }
              }
            }
          });

          layoutRect = self.layoutRect();
          self._fullscreen = state;

          if (!state) {
            self.borderBox = BoxUtils.parseBox(self.settings.border);
            self.getEl('head').style.display = '';
            layoutRect.deltaH += layoutRect.headerH;
            $([documentElement, document.body]).removeClass(prefix + 'fullscreen');
            self.classes.remove('fullscreen');
            self.moveTo(self._initial.x, self._initial.y).resizeTo(self._initial.w, self._initial.h);
          } else {
            self._initial = { x: layoutRect.x, y: layoutRect.y, w: layoutRect.w, h: layoutRect.h };

            self.borderBox = BoxUtils.parseBox('0');
            self.getEl('head').style.display = 'none';
            layoutRect.deltaH -= layoutRect.headerH + 2;
            $([documentElement, document.body]).addClass(prefix + 'fullscreen');
            self.classes.add('fullscreen');

            var rect = DomUtils.getWindowSize();
            self.moveTo(0, 0).resizeTo(rect.w, rect.h);
          }
        }

        return self.reflow();
      }
function ( state ) { var self = this , documentElement = document . documentElement , slowRendering , prefix = self . classPrefix , layoutRect ; if ( state != self . _fullscreen ) { $ ( window ) . on ( 'resize' , function ( ) { var time ; if ( self . _fullscreen ) { // Time the layout time if it's to slow use a timeout to not hog the CPU if ( ! slowRendering ) { time = new Date ( ) . getTime ( ) ; var rect = DomUtils . getWindowSize ( ) ; self . moveTo ( 0 , 0 ) . resizeTo ( rect . w , rect . h ) ; if ( ( new Date ( ) . getTime ( ) ) - time > 50 ) { slowRendering = true ; } } else { if ( ! self . _timer ) { self . _timer = Delay . setTimeout ( function ( ) { var rect = DomUtils . getWindowSize ( ) ; self . moveTo ( 0 , 0 ) . resizeTo ( rect . w , rect . h ) ; self . _timer = 0 ; } , 50 ) ; } } } } ) ; layoutRect = self . layoutRect ( ) ; self . _fullscreen = state ; if ( ! state ) { self . borderBox = BoxUtils . parseBox ( self . settings . border ) ; self . getEl ( 'head' ) . style . display = '' ; layoutRect . deltaH += layoutRect . headerH ; $ ( [ documentElement , document . body ] ) . removeClass ( prefix + 'fullscreen' ) ; self . classes . remove ( 'fullscreen' ) ; self . moveTo ( self . _initial . x , self . _initial . y ) . resizeTo ( self . _initial . w , self . _initial . h ) ; } else { self . _initial = { x : layoutRect . x , y : layoutRect . y , w : layoutRect . w , h : layoutRect . h } ; self . borderBox = BoxUtils . parseBox ( '0' ) ; self . getEl ( 'head' ) . style . display = 'none' ; layoutRect . deltaH -= layoutRect . headerH + 2 ; $ ( [ documentElement , document . body ] ) . addClass ( prefix + 'fullscreen' ) ; self . classes . add ( 'fullscreen' ) ; var rect = DomUtils . getWindowSize ( ) ; self . moveTo ( 0 , 0 ) . resizeTo ( rect . w , rect . h ) ; } } return self . reflow ( ) ; }
Switches the window fullscreen mode.

@method fullscreen
@param {Boolean} state True/false state.
@return {tinymce.ui.Window} Current window instance.
Switches the window fullscreen mode .