/**
 * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 *
 * @fileOverview The "divarea" plugin. It registers the "wysiwyg" editing
 *		mode using a DIV element.
 */
CKEDITOR.plugins.add('divarea',{afterInit:function(editor){editor.addMode('wysiwyg',function(callback){var editingBlock=CKEDITOR.dom.element.createFromHtml('<div class="cke_textarea_inline cke_reset" hidefocus="true"></div>');var contentSpace=editor.ui.space('contents');editingBlock.insertAfter(contentSpace);contentSpace.hide();editingBlock=editor.editable(editingBlock);editingBlock.detach=CKEDITOR.tools.override(editingBlock.detach,function(org){return function(){org.apply(this,arguments);this.remove();};});editor.setData(editor.getData(1),callback);editor.fire('contentDom');});}});