Here is my first go at using the YUI (Yahoo Interface Library http://developer.yahoo.com/yui/)as a WYSIWYG interface for the wiki.
It uses two hooks - one to inject Javascript into the wiki template and the other to add an onSubmit to the form tag.
Hope it works for you!
[Moderator Edit: Moved to Extensions forum]
a very good solution, thank you!
there is only one problem: the yui doesn’t show linebreaks/paragraph-breaks. is there any possibility to enable this?
oh, and moreover: the changes i make with the editor (e.g.: formatting text bold) are not remembered when i save …
is this editor still under development?
Have done an update on the extension based on the yui plugin I wrote see below. I am seeing the same problem with line breaks but will not get a chance to dig for this one immediately. I suspect there needs to be another bit in the extension that changes to line breaks on saving as the wiki is being helpful and converting line breaks to before display.
Hope this helps.
Phoebe
The current method requires two calls for each widget you want to use, one to load the dependancies and one for the code for the widget. As my templates are made up of a collection of sub-templates, this means far more calls than necessary. I would like to find a way of loading the dependancies just before spitting out the template based on the widgets loaded, but attempts to do this so far have not succeeded!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.