/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview The "sourcearea" plugin. It registers the "source" editing * mode, which displays the raw data being edited in the editor. */ CKEDITOR.plugins.add( 'sourcearea', { requires : [ 'editingblock' ], init : function( editor ) { var sourcearea = CKEDITOR.plugins.sourcearea, win = CKEDITOR.document.getWindow(); editor.on( 'editingBlockReady', function() { var textarea, onResize; editor.addMode( 'source', { load : function( holderElement, data ) { if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) holderElement.setStyle( 'position', 'relative' ); // Create the source area