We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Beta for using YUI for WYSIWYG editor for wikis

Development and Programming

Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

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]

       
lehrerfreund's avatar
lehrerfreund
263 posts
17 years ago
lehrerfreund's avatar lehrerfreund

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?

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

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

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

attachements!

       
Jim F's avatar
Jim F
53 posts
17 years ago
Jim F's avatar Jim F

I’m working with YUI on a site I’m working on. I’ve only had time to briefly look at your code but it seems like a neat approach to integrating YUI into EE’s templates. I’ll try to give you some feedback as soon as I find some time to take a better look.

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar 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!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.