]> git.wh0rd.org - tt-rss.git/blobdiff - lib/dijit/_editor/plugins/NewPage.js.uncompressed.js
modify dojo rebuild script to remove uncompressed files
[tt-rss.git] / lib / dijit / _editor / plugins / NewPage.js.uncompressed.js
index 5750bb55f8f969b6ccb8f712bfae597d44ad13bc..72b6f686abba4e3b0734f02c8465303d785ffcb2 100644 (file)
@@ -7,15 +7,8 @@ define("dijit/_editor/plugins/NewPage", [
        "dojo/i18n!../nls/commands"
 ], function(declare, i18n, lang, _Plugin, Button){
 
-/*=====
-       var _Plugin = dijit._editor._Plugin;
-=====*/
-
 // module:
 //             dijit/_editor/plugins/NewPage
-// summary:
-//             This plugin provides a simple 'new page' capability.  In other
-//             words, set content to some default user defined string.
 
 
 var NewPage = declare("dijit._editor.plugins.NewPage",_Plugin,{
@@ -25,7 +18,7 @@ var NewPage = declare("dijit._editor.plugins.NewPage",_Plugin,{
 
        // content: [public] String
        //              The default content to insert into the editor as the new page.
-       //              The default is the <br> tag, a single blank line.
+       //              The default is the `<br>` tag, a single blank line.
        content: "<br>",
 
        _initButton: function(){
@@ -35,6 +28,7 @@ var NewPage = declare("dijit._editor.plugins.NewPage",_Plugin,{
                        editor = this.editor;
                this.button = new Button({
                        label: strings["newPage"],
+                       ownerDocument: editor.ownerDocument,
                        dir: editor.dir,
                        lang: editor.lang,
                        showLabel: false,
@@ -44,7 +38,7 @@ var NewPage = declare("dijit._editor.plugins.NewPage",_Plugin,{
                });
        },
 
-       setEditor: function(/*dijit.Editor*/ editor){
+       setEditor: function(/*dijit/Editor*/ editor){
                // summary:
                //              Tell the plugin which Editor it is associated with.
                // editor: Object