Initial commit for temporary serving.
This commit is contained in:
38
1.0.1/js/ckeditor/plugins/divarea/plugin.js
Normal file
38
1.0.1/js/ckeditor/plugins/divarea/plugin.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* @license Copyright (c) 2003-2016, 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 cke_enable_context_menu" 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' );
|
||||
} );
|
||||
}
|
||||
} );
|
||||
64
1.0.1/js/ckeditor/plugins/divarea/samples/divarea.html
Normal file
64
1.0.1/js/ckeditor/plugins/divarea/samples/divarea.html
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user