[isf-wifidog] New features: HTMLeditor and Cache

Proulx François fproulx at edito.qc.ca
Jeu 8 Déc 14:45:46 EST 2005

Pretty cool Max, I tried it and the FCKeditor works great, but it  
appears there is an SQL error when I don't select a language for the  
langstring entry. I will do the french translations during the  
weekend. And it's great that you provide the CSS styles dropdown. We  
will strongly suggest people to use the styles in the dropdown so  
they don't go crazy with funky colors and styles...

See ya

On 8-Dec-2005, at 11:44 , Max Horváth wrote:

> Hello folks,
> First of all, sorry for not releasing this any earlier, but I had  
> to do some things in private life. But now it's done and I'm back  
> on track for WiFiDOG.
> I just commited two new features to the CVS. The main developers  
> should be able to get those changes now. Everyone else, who's using  
> the anonymous CVS access should be able to get those changes during  
> the next hours.
> Those two new features are:
> - HTMLeditor
> - Cache
> HTMLeditor uses the open source library FCKeditor[1]. It is an  
> lightweight HTML text editor that brings to the web many of the  
> powerful functionalities of desktop editors like MS Word. You can  
> use HTMLeditor as a content type. This should ease the input of new  
> content for many of us.
> Cache is a class, which uses PEAR::Cache_Lite[2]. If you installed  
> PEAR::Cache_Lite on your server and enabled the switch  
> USE_CACHE_LITE in config.php, it'll cache the output of HTMLeditor  
> content. This will save traffic to the database server. I plan to  
> extend the use of the cache class to all content types. In the end  
> this would save a lot of load on the database server.
> So, what do you have to do, to use HTMLeditor?
> First you have to install FCKeditor into the /lib/FCKeditor folder.  
> Now it's done - go ahead and use it.
> What do you have to do to use caching?
> First you have to install PEAR::Cache_Lite. Consult the PEAR  
> manual, if you're unsure how to do that. Next you have to enable  
> caching in config.php. If you're using local.config.php don't  
> forget to include the new switch to this file. Please make sure,  
> that the new directory /tmp/cache is writeable for your webserver!
> HTMLeditor is not a complete integration for now. It's fully  
> functional, but we have to improve it.
> First I'd like to see a WiFiDOG skin, so the HTML text editor would  
> fit into the WiFiDOG layout. This is work that could be done by a  
> few volunteers over at ISF.
> Next you'll notice the green background of the text editor. This is  
> due to HTMLeditor using WiFiDOGs CSS file. Green has been defined  
> as the background color. Well, we should find a workaround for  
> this. Next you'll notice that I only included one example for the  
> CSS styles available to the editors. Well, this is, because I  
> wanted ISFs CSS designer to decide, which CSS styles should be  
> available to the editor.
> Please add those CSS styles to /templates/FCKeditor/css/en.xml.
> Also I only included the german translation of the templates and  
> CSS styles for HTMLeditor. The fr.xml you will find in /templates/ 
> FCKeditor/templates and /templates/FCKeditor/css is a copy of the  
> en.xml. So those two files need to be translated into french.
> Another question is, if we'd like to include more or other  
> templates for HTMLeditor.
> I hope you'll like those two new additions. I'd be very happy, if  
> you'd be able to test them.
> Please note, that I tested them as much as possible, but now we  
> gotta test it in the wild. So take this code only as BETA quality.
> So long,
> Max!
> [1] http://www.fckeditor.net
> [2] http://pear.php.net/package/Cache_Lite/
> _______________________________________________
> WiFiDog mailing list
> WiFiDog at listes.ilesansfil.org
> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog

More information about the WiFiDog mailing list