#16983 closed enhancement (fixed)
Allow FontChoice Editor plugin dropdowns to be styleable
Reported by: | Nick Fenwick | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9 |
Component: | Editor | Version: | 1.9.0b2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The FontChoice? editor plugin currently doesn't put any CSS class name on its dropdown to allow you to style it. They're currently much wider than they tend to need to be, e.g. the 'size' one with plainText:true set is about twice as wide as any of the text in the dropdown.
Just as a proof of concept, I've overridden the FontSize? dropdown and am currently doing this in postCreate:
domClass.add(this.select.domNode, this.command);
This allows me to style it in CSS:
.fontSize.dijitComboBox { width: 10em; }
Suggest a patch is made to the templateString to allow the 'class' to include this.command. Does the class name need to be more specific?
Attachments (1)
Change History (4)
Changed 9 years ago by
Attachment: | 16983.patch added |
---|
comment:1 Changed 9 years ago by
Milestone: | tbd → 1.9 |
---|---|
Owner: | set to bill |
Status: | new → assigned |
OK sure, I think we want to have the name include "dijit" so it doesn't conflict with user CSS, but anyway I'll checkin something similar to your patch.
Patch showing inclusion of 'class' attribute on dropdown.