Opened 14 years ago
Last modified 10 years ago
#8378 confirmed New Feature
Support for optgroup
Reported by: | datalink | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
For a better overview I want to have the optgroup element for select in one of my plugins.
Attachments (1)
Change History (6)
comment:1 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
Sorry for the request without explains. What I mean are selectboxes in dialog.
CKEDITOR.on( 'dialogDefinition', function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'mydialog' ) { var infoTab = dialogDefinition.getContents('info'); infoTab.add( { type : 'select', id : 'myselect', label : 'My Select', 'default' : '', items : [ [name, value], [name, value], [name, value] ], ... ... ...
What I want is to group the items like this
items : [ [ groupname1, [name, value], [name, value], [name, value] ], [ groupname2, [name, value], [name, value], [name, value] ] ]
comment:3 Changed 14 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
That's much clearer now. Thank you.
comment:4 Changed 14 years ago by
Status: | reopened → confirmed |
---|
comment:5 Changed 10 years ago by
I copy the select part from the dialog ui source and create this plugin with it.
Rich Combos that are used with CKEditor already have their "optgroup".
Please check stylescombo of font plugin.
As you probably know such types of plugins can be added with code:
Hope that this will clear things up a bit.
If I didn't understand you correctly please write me back.