|
Cookbook /
WikiwygSummary: Integrate Wikiwyg into PmWiki for WYSIWYG editing
Version: 20070211
Prerequisites:
Status: pre-alpha
Maintainer: Evan Prodromou
Questions answered by this recipe
DescriptionThis recipe integrates Wikiwyg, a WYSIWYG editing library specifically for wiki markup, into PmWiki. It's a cookbook extension, so it doesn't require changes to the core code of PmWiki (yet). About WikiwygThe two major browsers (Internet Explorer and Mozilla/Firefox) have a special mode that lets people edit HTML in their browser. Many content management systems use this mode to enable WYSIWYG editing of pages or parts of pages. You can also see this feature in action in Wordpress, Yahoo! Mail, Gmail, Google Docs, or many other services. There are some libraries that make use of this feature to provide a rich word processing interface to a Web app. FCKEditor, TinyMCE, and Kupu are some of the best known. Wikiwyg is a similar library with one key difference: it lets the wiki engine be blissfully unaware of the HTML that's happening on the client end. It uses JavaScript code to convert the HTML edited by the IE/Mozilla mode into Wiki text, and it lets the server-side code convert that wikitext back into HTML. InstallationYou can try this extension out by opening up the tarball and putting the files in the right places. You should be able to tell from the tarball where the files should go; if not, you're probably not the right person to use this tool just yet. Dont forget to add include_once("cookbook/wikiwyg.php"); in your /local/config.php file (just like any other recipe). Notes
Release Notes
CommentsThanks for this very interesting recipe which I find far more powerfull than FCKEditor.
I'll try to have a deeper look and see if I can bring you some information/patch to fix bugs. Good job Evan ! Ramu One word: Fantastic! Stefano See AlsoContributors--- Any updates on this? --- Updates? I'm dying for this to be updated so I can integrate it in my wiki. :Main update is that PM is coming to Montreal and I'm going to talk to him about the tool then. --EvanProdromou --- Good start. But I have a big problem when re-editing a page with a table created like this Each Fabrice. Any updates now, did you talk with PM? -Gabriel --- I too am hoping to install this if made available. In its present form it doesn't work for me at all at present. Any updates? -PaulWebster --- I installed it and the editing box is still the old version. Any ideas? - Ravenswood - Never mind, I found it. In wikiwyg.php, there's a line wikiwords: Since wikiwords: , which caused an error. I changed it to wikiwords: 'and it started working. - Ravenswood - Correction. It's working in Firefox 1.5 but not IE. - R - I've narrowed it down, but I don't know how to fix it. In IE, this routine: proto.get_edit_document = function() {
return this.edit_iframe.contentWindow.document;
}
generates an error. If I turn on script debugging, it just says "Unspecified error" - R --- Hello, --- The same like above. I think it doesn't work at all. errorsys --- Hello all. I've been away from this codebase for a while and haven't had time to work on it. I'm very interested in support of WikiCreole in recent PmWiki betas and for my own use I will probably be revising this plugin to use WikiCreole. It's just a lot simpler and easier than full PmWiki syntax, and it's more likely that there's be some synergy with implementations in other wiki engines. I will probably try to set up a multi-syntax system, but the creole mode will probably "scratch my itch". --EvanProdromou |