2 Copyright (c) 2003-2011, 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 canUndo : false, // The undo snapshot will be handled by 'insertElement'.
\r
15 exec : function( editor )
\r
17 editor.insertElement( editor.document.createElement( 'hr' ) );
\r
21 var pluginName = 'horizontalrule';
\r
23 // Register a plugin named "horizontalrule".
\r
24 CKEDITOR.plugins.add( pluginName,
\r
26 init : function( editor )
\r
28 editor.addCommand( pluginName, horizontalruleCmd );
\r
29 editor.ui.addButton( 'HorizontalRule',
\r
31 label : editor.lang.horizontalrule,
\r
32 command : pluginName
\r