code: function()
  		{
  			// Call all cacheable function.
  			this.getRanges();
  			this.getStartElement();
  			this.getSelectedElement();
  			this.getSelectedText();
  
  			// The native selection is not available when locked.
  			this._.cache.nativeSel = {};
  
  			this.isLocked = 1;
  
  			// Save this selection inside the DOM document.
  			this.document.setCustomData( 'cke_locked_selection', this );
  		}
docs: Locks the selection made in the editor in order to make it possible to
  manipulate it without browser interference. A locked selection is
  cached and remains unchanged until it is released with the <code>#unlock</code>
  method.
  @example
  editor.getSelection().<strong>lock()</strong>;