On 11/11/09 1:10 PM, Marius Dumitru Florea wrote:
Of course, it's more elegant if you mark all
text areas to be replaced
with a CSS class like:
<textarea id="foo" class="richtextarea"></textarea>
<textarea id="bar" class="richtextarea"></textarea>
and then have:
Wysiwyg.onModuleLoad(function() {
$$('.richtextarea').each(function(textArea) {
new WysiwygEditor({hookId:textArea.id});
});
});
Maybe we could offer that by default in xwiki.js, WDYT ?
Would be interesting in the case we would force the displayer of
textarea object properties to add the CSS class when the XWiki class is
configured to use the WYSIWYG.