]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/wikiwyg.mdwn
web commit by JoshTriplett: Add implementation possibilities.
[ikiwiki.git] / doc / todo / wikiwyg.mdwn
1 [Wikiwyg](http://www.wikiwyg.net/)
2 is a WYSIWYG editor written in javascript for wikis. It allows editing in a
3 gui or in wikitext and converts edits back to wiki format to be saved to
4 the wiki.
5
6 It would be awesome to use this in ikiwiki, but to take full advantage of
7 it with ikiwiki, it would need to know about MarkDown. Wikiwyg does allow
8 defining the text that is stuck on each side of a given html element to
9 make it wikified, for example, it can add "# " for a h1, "[[" and "]]" for
10 a link, etc. This seems easily doable.
11
12 The other thing that would need doing is a `saveChanges` function would
13 need to be implemented that saves the text back to ikiwiki. 
14 http://svn.wikiwyg.net/code/trunk/wikiwyg/share/Kwiki/lib/Wikiwyg/Kwiki.js
15 seems like a good starting point for building a submit form on the fly.
16
17 One other problem: Wikiwyg works by parsing html from a div, turning it
18 back into the wiki markup, and editing/saving that. That seems to assume
19 that there's a way of parsing a page's html and getting back to the underlying
20 wiki markup, which is not always the case in ikiwiki. Unless there's some 
21 other way to feed it the actual source for a page, this seems like a
22 problem. According to the developers, it is possible to do that, and start
23 off in WikiText mode.