~ubuntu-branches/ubuntu/lucid/mahara/lucid-security

« back to all changes in this revision

Viewing changes to htdocs/js/tinymce/classes/commands/InsertHorizontalRule.js

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2009-11-27 22:09:03 UTC
  • mfrom: (6.3.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091127220903-aiigd3tr46z0rmcg
Tags: 1.2.0-2
Fix postrm script so that Mahara can be uninstalled

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * $Id: EditorCommands.js 1042 2009-03-04 16:00:50Z spocke $
 
3
 *
 
4
 * @author Moxiecode
 
5
 * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
 
6
 */
 
7
 
 
8
(function(tinymce) {
 
9
        tinymce.GlobalCommands.add('InsertHorizontalRule', function() {
 
10
                if (tinymce.isOpera)
 
11
                        return this.getDoc().execCommand('InsertHorizontalRule', false, '');
 
12
 
 
13
                this.selection.setContent('<hr />');
 
14
        });
 
15
})(tinymce);