Closed davidbgk closed 9 years ago
The pattern should be to activate the option
rather than the select
itself:
// 1 - Set style feature.js
scenario: [
TextEditorWidget.boldStyle(),
// …
]
// TextEditorWidget.js
boldStyleOption: '#textEditor select[name="style"] option[value="bold"]',
Please let me know if this works :)
It works thanks, maybe worth a line in the documentation?
Could be! Question is: where would you have looked for it? ;)
Maybe in an advanced example?
Right, I guess the closest to “recipes” is currently the advanced examples.
Closing this issue, as the problem was solved and the knowledge is properly stored for someone searching for it. It would be an improvement to improve discoverability by adding an example, but this should not be blocking anymore.
I tried to do a
this.setFrequencyField(frequency)
withfrequency
being anoption
in aselect
targeted viaselect#frequency
. The same pattern works for aninput
or atextarea
but not for aselect
or I missed something.