silverstripe-framework/thirdparty/tinymce/classes/commands/InsertHorizontalRule.js

16 lines
428 B
JavaScript
Raw Normal View History

/**
* $Id: EditorCommands.js 1042 2009-03-04 16:00:50Z spocke $
*
* @author Moxiecode
* @copyright Copyright <EFBFBD> 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
(function(tinymce) {
tinymce.GlobalCommands.add('InsertHorizontalRule', function() {
if (tinymce.isOpera)
return this.getDoc().execCommand('InsertHorizontalRule', false, '');
this.selection.setContent('<hr />');
});
})(tinymce);