CoreFiles by mySites.guru
plugin.js30 lines, 648 bytes, from wordpress-4.5.21.zip
Raw History Compare with 4.5.20
md5
428c9fb47a7b83fa0440a15886d0b11a
sha1
523d599375f26aec5a6e83d4aff450a7e06edd1c
sha256
09faab22ae2ee7560dfde4bbf3c2be7dc041bc955b113f26ff6a90b60d161804
/**
 * plugin.js
 *
 * Released under LGPL License.
 * Copyright (c) 1999-2015 Ephox Corp. All rights reserved
 *
 * License: http://www.tinymce.com/license
 * Contributing: http://www.tinymce.com/contributing
 */

/*global tinymce:true */

tinymce.PluginManager.add('hr', function(editor) {
	editor.addCommand('InsertHorizontalRule', function() {
		editor.execCommand('mceInsertContent', false, '<hr />');
	});

	editor.addButton('hr', {
		icon: 'hr',
		tooltip: 'Horizontal line',
		cmd: 'InsertHorizontalRule'
	});

	editor.addMenuItem('hr', {
		icon: 'hr',
		text: 'Horizontal line',
		cmd: 'InsertHorizontalRule',
		context: 'insert'
	});
});

The same content is in 216 releases, WordPress 4.3-beta1 to 4.7.39. See them all, or every version of this file.