Hi everybody,
We plan to use DokuWiki to document our server installations. To make things more readable, we'd like to use a monospaced font like Courier from time to time (eg for server names). And this should be possible at different places, also in lists. Also we'd like to use a wysiwyg editor (we tried both ckg and fckg).
Our first approach was to simply mark elements and then define those as "code text" style, which should produce wiki code like:
xxx
* ''yyy''
* ''zzz''
I see such things are also used in the official wiki, so it can't be completely wrong. If you open such a file - you can actually use above sample - in ckg or fckg and save it again without doing any modification, you'll get
xxx
* ''yyy''
* ''zzz
So it "forgets" the closing code tag. In longer pages this can mess up the whole structure, which it did in one of my first pages; it cost me hours to figure out where the problem was. Surprisingly I could hardly find any information about this issue. It is an editor issue though, not an issue of the engine.
Some Google research revealed an explanation in this direction: the quote thingies are translated internally into <code>...</code> HTML tags, and those HTML tags are block tags and so not allowed within list elements. Unfortunately we're not aware of any wysiwyg editor without this issue. Actually we thought about patching the editor so that it uses<tt>...</tt> instead, but that javascript/php is so messy it is hard to patch.
The only thing that worked was to use font selections in the edtor. This then results in:
<font 11pt/courier new,courier,monospace;;#000000;;#ffffff>...</font>
The page looks fine. Unfortunately, when you re-open such a document in the wysiwyg-editor, it can't parse the stuff it generated itself and displaye it raw ("<font 11pt/courier new,courier,monospace;;#000000;;#ffffff>this is my text</font>"instead of simply "this is my text"). OK, it's possible to live with that, but it is not really "wysiwyg".
Is there any fix for that issue? Is it a known and documented problem at all? I can't imagine we're the only ones annoyed about this. Editing the pages in a just text editor is kind of painful; some wysiwyg elements are nice. We could live with a standalone editor, it need not run in the browser, if this solved the problem.
Thanks in advance,
Andy