I really like the YUI CSS stuff ... reset, fonts, grids.
Maybe just take the latest build of YUI and stick it in YUI framework
and do dynamic loading of needed bits for whatever components. For
https you have to host it yourself anyway rather than link to yahoos
hosted versions to avoid the insecure page elements warnings IIRC.
-Kieran
On Dec 9, 2008, at 10:26 AM, Mike Schrag wrote:
i have to say .. i tried a ton of them, and they all sucked ... The
one that surprisingly sucked the least for me? Yahoo Rich Text
Editor. I gotta say .. I was using tiny_mce before, mainly because
of the extensibility and some level of "if these other people are
doing it, it can't be ALL bad". But as it turns out ... it's pretty
bad. It's comparatively really sluggish, and while it's POSSIBLE to
extend, I found it to be pretty annoying to do so. I know YUI has a
bit of a reputation of being big and complicated, but they have
great examples of just dropping it into your page, and it really did
"just work" for me.
YUI won't let me load its resources from the yahoo site with on-
demand ajax loading (i think because of cross-site issues, but I
haven't looked closely yet), so you might have to host them locally,
but if people care, roughly the chunk I use to do rich text with YUI
is:
$(document.body).addClassName('yui-skin-sam');
var myEditor = new YAHOO.widget.Editor('<wo:str value="$^id"/>', {});
myEditor.on("windowCreateLinkRender", function(e)
{ e.panel.cfg.setProperty("zIndex", 10001) });
myEditor.on("windowInsertImageRender", function(e)
{ e.panel.cfg.setProperty("zIndex", 10001) });
myEditor.render();
var saveOnSubmit = function() {
myEditor.saveHTML();
$('<wo:str value="$^id"/>').form.stopObserving('ajax:submit',
arguments.callee);
};
$('<wo:str value="$^id"/>').form.observe('ajax:submit',
saveOnSubmit);
(The weird zIndex stuff is so you can put a YUI in an
AjaxModalDialog, which sits at 10000). Note that ajax:submit thing
is something special we do in Wonder, so if you're doing your own
Ajax stuff, you'll have to figure out an equivalent -- that
basically makes the myeditor commit its html to the textfield before
submitting through ajax.
Maybe I'll move this component into the YUI framework, but some of
the hoops I jumped through for adding script resources reliably are
a little bit weird, so I figured I'd just share the important part
in the meantime.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]