- Code: Select all
WYMeditor.XhtmlValidator._tags['p'] = {
'attributes': {
'class':/^(example|misspell|draggable)$/,
'0':'name'
}
};
It doesn't work until there is only one class attribute. To have both class "example" and "draggable" I have to write:
- Code: Select all
WYMeditor.XhtmlValidator._tags['p'] = {
'attributes': {
'class':/^(example|misspell|draggable|example draggable|draggable example)$/,
'0':'name'
}
};
This isn't a big problem until there is the only combination but what if I want to add other possible classes. Is there any possibility to define list of tags that could occur (or not) in any order?