CKEditor.

Edition of page part for single language.
This commit is contained in:
chris2tof committed 2011-05-25 16:27:17 +08:00
1 parent d971a8ecbe
commit a8c4e17c56
664 files changed
+119327 -10

No files matched your search

@@ -0,0 +1,36 @@
/*
Copyright (c) 2003-2011, 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
});
}
});
})();