Ticket #7828 (new defect)
dijit._editor._Plugin: custom plugins UI does not show up if they are meant to handle custom commands
| Reported by: | lipik | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Dijit | Version: | 1.2.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I am creating a pluging to handle the save command - a button is displayed that would carry out some custom action (save editor content upon being clicked). However, the UI comes in hidden due to the following code in _Plugin.js:
if (!this.editor.queryCommandAvailable(this.command)) {
// console.debug("hiding:", this.command);
if(this.button){
this.button.domNode.style.display = "none";
}
}
It should be changed to:
if (this.useDefaultCommand && !this.editor.queryCommandAvailable(this.command)) {
// console.debug("hiding:", this.command);
if(this.button){
this.button.domNode.style.display = "none";
}
}
Change History
Note: See
TracTickets for help on using
tickets.