For this to work i need the xhtml validator to allow more expressions than strict xhtml (for example rel="nofollow" or rev="vote-for" in 'a' tags).
To do so during plugin initialization function i substitute
- Code: Select all
WYMeditor.XhtmlValidator._tags['a']['attributes']['rev']
WYMeditor.XhtmlValidator._tags['a']['attributes']['rel']
with my own regexpr (ie. yours with some words added in the end).
Is there a smarter way to do this job? One that doesn't need me to manually adjust regexpr each time you change those?
EDIT: i'm working with svn version (currently r530)