multi-value combobox?
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 4
- Joined: Thu May 15, 2014 1:51 pm
multi-value combobox?
Hi all,
I want to use a combobox in an author action. More specifically, I use it in the ToggleSurroundWithElementOperation to add a <hi> element around the current selection, allowing to user to specify the elements @rendition attribute from a list of allowed values ("#it", "#b", "#sup" and such).
This works all very well with the following stuff in the Operation's fragment parameter:
But now I want to allow the selection of several of those values. The TEI allows multiple (pointer-type) values in this attribute, separated by whitespace (see TEI P5).
Can I do this with the ask/combobox method?
Thanks,
Andreas
I want to use a combobox in an author action. More specifically, I use it in the ToggleSurroundWithElementOperation to add a <hi> element around the current selection, allowing to user to specify the elements @rendition attribute from a list of allowed values ("#it", "#b", "#sup" and such).
This works all very well with the following stuff in the Operation's fragment parameter:
Code: Select all
<hi xmlns="http://www.tei-c.org/ns/1.0" rendition="${ask('Welche Hervorhebung?',combobox,('#b':'fett';'#it':'kursiv';'#sc':'Kapitälchen';'#spc':'gesperrt';'#sup':'hochgestellt';'#sub':'tiefgestellt';'#initCaps':'Kapitälchen mit Schmuck-Initiale'),'#sup')}"/>
Can I do this with the ask/combobox method?
Thanks,
Andreas
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: multi-value combobox?
Post by alex_jitianu »
Hello Andreas,
The ${ask} editor variable doesn't have any input type that allows multiple selection. I've added an issue to allow such an input type, perhaps a multiple selection list or some check boxes.
Meanwhile you could let the @rendition attribute like it is now or even inserted it completely empty. To compensate, you could use a multiple selection form control on the @rendition to allow the user to select multiple values:
Best regards,
Alex
The ${ask} editor variable doesn't have any input type that allows multiple selection. I've added an issue to allow such an input type, perhaps a multiple selection list or some check boxes.
Meanwhile you could let the @rendition attribute like it is now or even inserted it completely empty. To compensate, you could use a multiple selection form control on the @rendition to allow the user to select multiple values:
Code: Select all
hi:before {
content: "Welche Hervorhebung: " oxy_popup(edit, '@rendition', values, '#sup, #it', labels, "hochgestellt, kursiv");
}
Alex
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service