summaryrefslogtreecommitdiff
path: root/addons/website/static/lib/ckeditor/plugins/divarea/plugin.js
diff options
context:
space:
mode:
authorParamjit Singh Sahota <psa@tinyerp.com>2013-12-24 11:01:25 +0530
committerParamjit Singh Sahota <psa@tinyerp.com>2013-12-24 11:01:25 +0530
commit18d8368ee11eef0a74bacdb8f293414331bfa8da (patch)
treefc21df70cbd2901396c2bcf2fee0b52d750abd43 /addons/website/static/lib/ckeditor/plugins/divarea/plugin.js
parent5900672160c2bd5ae1d9257f20dbb5c51a193996 (diff)
parent123185757f51ee7e146d7295864556999d2a6938 (diff)
[MERGE] Merged lp:~openerp-dev/openobject-addons/trunk-website-al
bzr revid: psa@tinyerp.com-20131224053125-3lrogsrgd3ccp0i6
Diffstat (limited to 'addons/website/static/lib/ckeditor/plugins/divarea/plugin.js')
-rw-r--r--addons/website/static/lib/ckeditor/plugins/divarea/plugin.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/addons/website/static/lib/ckeditor/plugins/divarea/plugin.js b/addons/website/static/lib/ckeditor/plugins/divarea/plugin.js
deleted file mode 100644
index bf47eccb925..00000000000
--- a/addons/website/static/lib/ckeditor/plugins/divarea/plugin.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * @license Copyright (c) 2003-2013, 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 ) {
- // Add the "wysiwyg" mode.
- // Do that in the afterInit function, so it'll eventually overwrite
- // the mode defined by the wysiwygarea plugin.
- editor.addMode( 'wysiwyg', function( callback ) {
- var editingBlock = CKEDITOR.dom.element.createFromHtml( '<div class="cke_wysiwyg_div cke_reset" hidefocus="true"></div>' );
-
- var contentSpace = editor.ui.space( 'contents' );
- contentSpace.append( editingBlock );
-
- 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' );
- });
- }
-});