Menu

Change the output to produce wiki tags

2004-09-29
2013-03-22
  • Adriano Labate

    Adriano Labate - 2004-09-29

    Hi,

    I would like to know if it's easy to adapt the output generated by clicking the buttons to produce wiki tags instead of HTML tags.

    For example, for the "bold" button, generate "__text__" (JspWiki) instead of "<bold>text</bold>.

    Thanks.
    Adriano

     
    • Keith Alperin

      Keith Alperin - 2004-10-04

      Hi Adriano,

      HyperTextArea uses an API on the underlying browser to accomplish most of its formatting tasks (the API is called "midas" for Mozilla browsers, I'm not sure what it is referred to as for others) and thus does not produce anything other than HTML.  However, if you wanted to do some additional work, you could add your own controls to a HyperTextArea instance which would insert HTML text nodes (instead of HTML tags) and these text nodes could include your wiki tags.  For some insight on how that might work, check out the insertElement method on HyperTextArea.  Please post here and let me know if you would like to do this work so that I'll be able to incorporate it into the HyperTextArea product.

      Thanks!
      KA

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.