From: Reini U. <ru...@x-...> - 2004-02-14 19:15:06
|
Reini Urban schrieb: > I have experimental support for htmlarea ready > based on http://www.interactivetools.com/products/htmlarea/ > version 2.x works on IE >= 5.5 > and version 3 with Mozilla >= 1.3 also > I've tested both versions. > > The missing part is the handler on the save step, when the generated > HTML code must be converted back to Wiki formatting. This looks like a > good job for Jeff (?) I've played now some time with htmlarea3. The problem is to convert HTML back to Wiki formatting. The editor is only able to edit pure HTML, since it relies on the browser internal engine. I started with some markup converter class, but I'm not sure if this will make sense, since we 'll need a complete and lossless round trip wiki->html->wiki. html->wiki looks really hard. The other idea which came to me was to store HTML and if the page type is HTML, only the Wysiwyg editor is called on edit. On page type = wiki one can choose "Edit" or "Wysiwyg Edit". This will bloat all pages, we will loose the wiki format once edited in the Wysiwyg editor, but the editor is really cool. I mean REALLY cool! See for example the http://www.guiki.com page. I've also written a phpnuke module for guiki in 30 minutes. What I have now: * phpwiki integration (ok) * htmlarea3 enhanced with a "Create PageLink" button (80%), * a "Toggle Wiki<->Wysiwyg" button besides the original "Toggle Wysiwyg<->HTML" button (70%), * convert wiki->html before Wysiwyg editing (ok), * convert html->wiki after Wysiwyg editing (10%). Do we want to store HTML and loose wiki markup? (Until the backconverter is written) -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |