﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7921	editor.mode always returns empty string	daveVW		"To solve the problem, I have to modify the file plugins/editingblock/plugin.js.
Is this OK ?

New code : (1 line disabled, 1 line added)

CKEDITOR.editor.prototype.setMode = function( mode )
{
   this.fire( 'beforeSetMode', { newMode : mode } );

   var data,
   holderElement = this.getThemeSpace( 'contents' ),
   isDirty = this.checkDirty();

   // Unload the previous mode.
   if ( this.mode )
   {
      if ( mode == this.mode )
         return;

      this.fire( 'beforeModeUnload' );

      var currentMode = getMode( this );
      data = currentMode.getData();
      currentMode.unload( holderElement );
      //this.mode = '';    //LINE HAS BEEN DISABLED
   }

   holderElement.setHtml( '' );

   // Load required mode.
   var modeEditor = getMode( this, mode );
   if ( !modeEditor )
      throw '[CKEDITOR.editor.setMode] Unknown mode ""' + mode + '"".';

   if ( !isDirty )
   {
      this.on( 'mode', function()
      {
         this.resetDirty();
         this.removeListener( 'mode', arguments.callee );
      });
   }

   modeEditor.load( holderElement, ( typeof data ) != 'string'  ? this.getData() : data);

   // FOLLOWING LINE HAS BEEN ADDED
   this.mode = (this.mode == 'wysiwyg') ? 'source' : 'wysiwyg';

};"	Bug	confirmed	Normal		General	3.0		HasPatch	
