tagging for text pages

1 view
Skip to first unread message

Laurent Savaete

unread,
Jun 16, 2012, 5:19:08 AM6/16/12
to ductus-d...@googlegroups.com
I started work on using the save and tagging widgets for text pages,
and it got a bit beyond what I first thought.
Basically, I will end up changing the whole page from a static html
form to a javascript based one (like for editing flashcard decks).

Visually, it wouldn't make much difference (except it would get a lot
more like the flashcard deck editor, which I think is good), the only
limitation would be that users with no JS would not be able to edit
pages anymore. I don't think we care much about that (not sure about
actual figures, but I think we've got around 99.5% of users with JS
enabled)

On the plus side (and I apologise for not sending out this email I
prepared a while ago about spam), using JS forms should help a lot in
staying clear of most spam (just because bots usually spam html <form>
pages, it's a lot easier than trying to figure out js code :)

I'm halfway implementing this, so hopefully I'll get it out over the
weekend, unless you guys object to that change. I'm sure I could find
a way to build a hybrid form+js solution, but I actually think it
would be worse, mostly for the spam problem.

Jim Garrison

unread,
Jun 16, 2012, 1:31:19 PM6/16/12
to ductus-d...@googlegroups.com
I think your plan is the best one.

Laurent Savaete

unread,
Jun 17, 2012, 8:13:34 AM6/17/12
to ductus-d...@googlegroups.com
Hi Jim,

I'm getting into another problem I hadn't anticipated.

The way I understand your code, the Wikitext class has a text property
that stores the wikitext markup. Problem is, text does not seem to
inherit from ductus Element, so output_json_dict() does not spit it
out, meaning we can't get to it directly in the javascript editor.

I can see a few options to solve this, but I'm not sure they would
actually work (and I'm worried that digging deeper I'll stumble upon
yet another unanticipated trick).
How would you properly correct this?

cheers,
L.

Laurent Savaete

unread,
Jun 20, 2012, 8:26:29 PM6/20/12
to ductus-d...@googlegroups.com
I pushed my changes to the textwiki editor to devbox, which include:
- using the save widget like for flashcard decks
- using the tagging widget

Give it a try at http://laurent.dev.wikiotics.net/new/wikitext

Update posted to ticket 139 which we can close if everyone's happy
with this proposal.

cheers,
L
Reply all
Reply to author
Forward
0 new messages