[Zope-CMF] RE: WYSIWYG HTML document edit form

Jon Edwards jon@pcgs.freeserve.co.uk
Tue, 19 Jun 2001 16:04:12 +0100


<Disclaimer>
I'd just like to point out that all I've done is download a javascript and
customise it to work with CMF. So, while I can't really take any credit,
neither do I accept any blame! ;-)
</disclaimer>

However, I'm more than happy to act as "chief-hacker" if people want to fire
suggestions as to how to improve it and integrate it better as a communal
resource. Suggestions that include code especially welcome! :-)

The fonts question is easy and hard! We can add any fonts you want, it's
just a list in the script's select box. As you probably know, though, you're
limited to what's on the end-user's computer. I remember seing ages ago a
list on a web-design site of "websafe fonts" - i.e. fonts that are installed
on most computer systems by default - but can't find the damn thing now!
Anyone got a link?

As with colours though, my feeling is it would be better if the site-manager
could define what fonts are acceptable in the "Site Style Guide", then the
WYSIWYG script lists only those fonts. Does that seem sensible?

You're kinda right about the Image Embed button, though if you put a full
http://blahbla/image.jpg path in there, it should work? I have two
possibilities for integrating this better -

1. Open a pop-up window with a picklist (via the portal_catalog) of all the
images on your site (and hack the javascript to include the appropriate dtml
tags around the id) - trouble is you might get a very long list back,
including all your rollover buttons and other graphics!

2. As above, but force/encourage users to upload images to a specified
folder, different from the one where you store your rollovers, etc.

Neither seems ideal! Any suggestions?

Cheers, Jon

-----Original Message-----
From: Frank McGeough [mailto:fm@synchrologic.com]
Sent: 19 June 2001 14:52
To: Jon Edwards
Subject: Re: [Zope-CMF] RE: WYSIWYG HTML document edit form


The Yahoo WYSIWYG email editor is only for Internet Explorer. When I try it
with Netscape it gives me a standard edit box. It is laid out a little nicer
than yours. It makes more fonts available. They are very similar however.

With your editor --- what does it mean to imbed a picture? I wouldn't think
that would work at all and it should be removed.