Changeset 13686
- Timestamp:
- 05/10/08 21:13:06 (5 days ago)
- Files:
-
- 1 modified
-
dijit/trunk/tests/_editor/test_CustomPlugin.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/tests/_editor/test_CustomPlugin.html
r13685 r13686 47 47 _initButton: function(){ 48 48 this.command = "htmlToggle"; 49 this.editor.commands[this.command] = "View HTML source"; // note: should be localized 49 50 this.iconClassPrefix = "customIcon"; 50 51 this.inherited(arguments); 51 52 delete this.command; // kludge so setEditor doesn't make the button invisible 52 this.connect(this.button, "onClick", this._toggleSource); 53 this.connect(this.button, "onClick", this._toggleSource); 53 54 }, 54 55 … … 73 74 } 74 75 75 this.editor.setDisabled(this.source); // conditionally disable toolbar 76 this.editor.setDisabled(this.source); // conditionally disable toolbar -- FIXME. Doesn't work. 77 this.button.setLabel(this.source ? "View WYSIWYG" : this.editor.commands[this.command]); // note: should be localized 76 78 } 77 79 }