Nikolas 'Atrus' Coukouma
lists at atrus.org
Sun Apr 24 05:39:33 EDT 2005
Julien Couvreur wrote:
>I like the idea of a rich text editor to replace textarea. One issue
>though is that different textareas expect different formats. For
>example, some accept links as <a href=""> tags, but some look for
>[[href title]] or [href title] format (wikis).
>One way to approach this would be to mark the textareas with an ID/URI
>to that format definition. But that would require the sites to
>change... Also it would require to build a list of such formats so
>that the script can handle a number of them.
I think the simplest solution would be to add a select element for, um,
selecting the target format. You could also try looking for keywords in
the page to guess the correct format (bb, wiki, html, etc.).
-Nikolas 'Atrus' Coukouma
More information about the Greasemonkey