Re: Diazo observations: entities and WYSIWYG

Fred van Dijk <f.van.dijk-1kr/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Hello Tom,

> Here are two observations I made using Diazo in some of my Plone setups:
> 
> 1. HTML entities: As Diazo is using XSLT transformations all HTML 
> entities are translated [1]. This is no problem at the first place but 
> some mail obfuscation methods seem to cease working. Including the one 
> shipped with Plone itself [2]. Maybe there are better ways to obuscate 
> mails but if so the method in Plone should be updated to an effective 
> and working! one.
> 
> Any pointers to non-javascript, non-enity e-mail obfuscation methods are 
> appreciated.
> 
> 2. WYSIWYG experience: I tried to ship ZIP themes which works pretty 
> nice despite of one fact. You don't have a WYSIWYG experience with them. 
> TinyMCE is using a CSS which is compiled from styles found in the 
> resource registry and does not know about the transformation which takes 
> place afterwards with Diazo. The only solution I found to teach TinyMCE 
> the correct content styles is still to provide a Python egg as a theme 
> (sigh!) with one CSS registry entry handling the (table, paragraph, 
> etc.) stylings of the content area.

There's a neat trick in TinyMCE that I recently found on this blog from UW Oskosh's Plone resources:

http://www.uwosh.edu/ploneprojects/docs/how-tos/how-to-effect-tinymce-styles-in-edit-mode

I never knew it was possible to add more than one css resource to the field in the TinyMCE
settings. We have used this to include both backend Plone CSS but also for example the main
diazo .css stylesheet in the content are of a Plone site. For example:

"portal_tinymce/@@tinymce-getstyle,/static/css/customer_common.css"

With kind regards,

Fred van Dijk
--
Zest Software
Tel: +31 (0) 10 2959251
"Solid & Stimulating"


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.