jeff
11-07-2008, 10:59 AM
Hi!
I'm new to dekiscript and i have a (possibly) simple question. I would like to send the contents of a table to a custom extension. The table should be editable in wiki as a normal table. To begin, i just tested it with the <b>-Tag
I tryed following:
{{myext.format("hello")}}
-> <b>-Tag is stripped out
<pre class="script" function="myext.format">hello</pre> -> is stripped out too.
if i write the tags like this:
<b>hello</b>
they are passed to the extension, but it is not really what i want.
because this would mean, that i have to write the whole table-html on my own, and the wiki-wysiwyg disappears. So i'm actually looking for something like:
<pre class="script" option="nostrip" function="myext.format"> (only example, this does not work...)
If this is not supported, i also thought about somehow reading the table with dekiscript and passing it's html to my extension. Can you give me an example, how can i do this?
Info: the extension is purposed to reformat the table in different ways: just easy standartizing the css format of tables (alternate cell color and so on...) and also for manipulating table data (grouping values, selecting..)
Any ideas?
I'm new to dekiscript and i have a (possibly) simple question. I would like to send the contents of a table to a custom extension. The table should be editable in wiki as a normal table. To begin, i just tested it with the <b>-Tag
I tryed following:
{{myext.format("hello")}}
-> <b>-Tag is stripped out
<pre class="script" function="myext.format">hello</pre> -> is stripped out too.
if i write the tags like this:
<b>hello</b>
they are passed to the extension, but it is not really what i want.
because this would mean, that i have to write the whole table-html on my own, and the wiki-wysiwyg disappears. So i'm actually looking for something like:
<pre class="script" option="nostrip" function="myext.format"> (only example, this does not work...)
If this is not supported, i also thought about somehow reading the table with dekiscript and passing it's html to my extension. Can you give me an example, how can i do this?
Info: the extension is purposed to reformat the table in different ways: just easy standartizing the css format of tables (alternate cell color and so on...) and also for manipulating table data (grouping values, selecting..)
Any ideas?