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