mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-16 11:38:02 +02:00
Committed CKEditor 3.2.1 stock version
This commit is contained in:
@ -0,0 +1,36 @@
|
||||
/*
|
||||
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file Horizontal Rule plugin.
|
||||
*/
|
||||
|
||||
(function()
|
||||
{
|
||||
var horizontalruleCmd =
|
||||
{
|
||||
canUndo : false, // The undo snapshot will be handled by 'insertElement'.
|
||||
exec : function( editor )
|
||||
{
|
||||
editor.insertElement( editor.document.createElement( 'hr' ) );
|
||||
}
|
||||
};
|
||||
|
||||
var pluginName = 'horizontalrule';
|
||||
|
||||
// Register a plugin named "horizontalrule".
|
||||
CKEDITOR.plugins.add( pluginName,
|
||||
{
|
||||
init : function( editor )
|
||||
{
|
||||
editor.addCommand( pluginName, horizontalruleCmd );
|
||||
editor.ui.addButton( 'HorizontalRule',
|
||||
{
|
||||
label : editor.lang.horizontalrule,
|
||||
command : pluginName
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
Reference in New Issue
Block a user