3400 Views 3 Replies Latest reply: Jan 28, 2010 9:12 AM by giezi
You can create a whitelist.plist file and place it in /etc/wikid/ which will allow you to specifically define html tags allowed on wiki pages. Then you can just add your custom CSS to the blocks of code you want to style. The first link below is a decent example. Also, if you go to /library/application support/apple/wikiserver/themes/directoryof_them_youuse/ you can edit the css for each theme - you could just edit the css for one of the existing styles defined in those stylesheets.
(See http://discussions.apple.com/thread.jspa?threadID=1667663&tstart=72 and http://lists.apple.com/archives/wiki-server/2008/Aug/msg00030.html)
That is, until I try to edit the page containing the code. What happens then is that the editor opens with the contents of the DOM, after formatting, rather than the raw wiki text that was stored and saved. Then the code becomes an absolute mess because the event that formats the code is fired a second time and makes an absolute mess of the html and the original wiki text with the embedded code.
Is there anyway to have the editor load the saved wiki content rather than the unsaved DOM representation?
We have the excatly same problem like jwdavidson, if we edit a page with code highlighting.
does anyone have a solution / workaround? Our implementation is based on http://alexgorbatchev.com/wiki/SyntaxHighlighter
Thanks and regards
Message was edited by: giezi