CLICK HERE TO BUY IT TODAY! OR GET IT FREE VIA TRIALPAY  

PHP Demo Application - Source Code

/Framework/Model/Vendor/CkEditor/_source/plugins/horizontalrule/plugin.js



/*
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.insertElementeditor.document.createElement'hr' ) );
			        }
		    };
	    var pluginName 'horizontalrule';
	    // Register a plugin named "horizontalrule".
	    CKEDITOR.plugins.addpluginName,
	    {
		        init : function( editor )
		        {
			            editor.addCommandpluginNamehorizontalruleCmd );
			            editor.ui.addButton'HorizontalRule',
			                {
				                    label editor.lang.horizontalrule,
				                    command pluginName
				                });
			        }
		    });
	})();





PHP Demo Source Code Index