Sha256: 0373f7e6e78304ad620ab48370ea4a3c8b804662e5f9350bab1fc2ceb53754e5
Contents?: true
Size: 801 Bytes
Versions: 93
Compression:
Stored size: 801 Bytes
Contents
/* 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 }); } }); })();
Version data entries
93 entries across 93 versions & 11 rubygems