2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
7 * @file Horizontal Rule plugin.
\r
12 var horizontalruleCmd =
\r
14 exec : function( editor )
\r
16 editor.insertElement( editor.document.createElement( 'hr' ) );
\r
20 var pluginName = 'horizontalrule';
\r
22 // Register a plugin named "horizontalrule".
\r
23 CKEDITOR.plugins.add( pluginName,
\r
25 init : function( editor )
\r
27 editor.addCommand( pluginName, horizontalruleCmd );
\r
28 editor.ui.addButton( 'HorizontalRule',
\r
30 label : editor.lang.horizontalrule,
\r
31 command : pluginName
\r