+ Reply to Thread
Results 1 to 2 of 2

Thread: Building extensions or templates around rich text (e.g., dictionary entry)

  1. #1
    Join Date
    Mar 2008
    Posts
    1,630

    Default Building extensions or templates around rich text (e.g., dictionary entry)

    There are a few things I'd like to do that depend on being able to feed rich text to an extension, or template, or whatever. I'm not sure how to go about it.

    Examples:
    1) Dictionary entry: Mediawiki has wikitext markup for entering a dictionary entry. It would be nice to have this for Dekiwiki. However, it must be possible to have the definition include whatever rich text formatting the user may desire (could be bullet lists, tables, anything). Therefore the template, or whatever, must be able to accept rich text as an argument. Or something like that.

    2) Action items: One useful feature would be to be able to enter "action items" via some template or something. Then they could be culled via some sort of search function (details TBD). However, this once again would require that the "arguments" include rich text.

    Does anyone have any suggestions how to approach something like this?

  2. #2
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    You can "technically" do this by adding the class="script" attribute and then adding function="my_content_transform" to the element you want to see transformed.

    This is what it would look like in HTML mode if you wanted to transform a list of items:
    Code:
    <ul class="script" function="my_content_transform">
    <li>item entry</li>
    </ul>
    The contents of the <ul> element is then sent to your "my_content_transform" function as an xml document.
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts