silverstripe-framework/thirdparty/tinymce/classes/commands/InsertHorizontalRule.js
2009-11-21 02:26:09 +00:00

16 lines
428 B
JavaScript

/**
* $Id: EditorCommands.js 1042 2009-03-04 16:00:50Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 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);