Ticket #502 (closed defect: fixed)

Opened 15 years ago

Last modified 14 years ago

Replace the Epoz HTML editor by the FCKeditor HTML editor

Reported by: madarche Owned by: madarche
Priority: P1 Milestone: CPS 3.4.0
Component: CPSSchemas Version: TRUNK
Severity: normal Keywords: widgets accessibility
Cc:

Description (last modified by fguillaume) (diff)

Replace the Epoz HTML editor by the FCKeditor HTML editor.

 http://www.fckeditor.net/

FCKeditor produces XHTML, and moreover semantical XHTML, while Epoz produces HTML 4.x being anything but semantic.

Using Epoz conflicts with CPS accessibility.

Example of XHTML code produced by FCKeditor: This is some <strong>sample text</strong>. You are using <a href=" http://www.fckeditor.net/">FCKeditor</a>.<br/><br/>Is it <span style="font-weight: bold;">XHTML</span>?<br/><br style="text-decoration: underline;"/><span style="text-decoration: underline;">Poet</span><br type="_moz"/>

About Kupu which is another HTML editor: FCKeditor could be a replacement (or an option) for Epoz, with just a few hours coding needed. Kupu integration in CPS is something we should think about harder before coding.

Change History

comment:1 Changed 15 years ago by rspivak

Unfortunately not all functions of FCKeditor work in Firefox(though Mozilla is Ok), i'm under FC3. And in forums many people notice that in Mozilla it works much slower then in IE. That may be, of course, not considered as problem...

comment:2 Changed 15 years ago by madarche

Which functions of FCKeditor don't work with Firefox (are there important functions)?

Are those functions expected to be fixed soon?

And finally, is it possible with FCKeditor to disable and to not display some specific functions and buttons?

comment:3 Changed 15 years ago by rspivak

Actually for me any popup doesn't work in Firefox :(, i tried that with fckeditor + plone and in 'live demo' from www.fckeditor.net About fixing - dunno anything.

comment:4 Changed 14 years ago by madarche

  • Owner changed from trac to madarche
  • Keywords accessibility added

comment:5 Changed 14 years ago by fguillaume

  • Owner changed from madarche to ogrisel
  • Priority changed from P2 to P1
  • Description modified (diff)
  • Milestone changed from unspecified to CPS 3.4.0

comment:6 Changed 14 years ago by madarche

FCKeditor optional support has been added in the changesets [29258] and [29259].

The supported version is FCKeditor.Plone (2.0.2):  http://svn.nuxeo.org/trac/pub/browser/vendor/FCKeditor/tags/fckeditor.plone_2.0.2/

The FCKeditor distribution is not yet added to the svn:externals of CPS.

The actual situation is as follows:

  • if FCKeditor is present in Products, then HTML edition is done through FCKeditor
  • if FCKeditor is not present in Products, then HTML edition is done through Epoz as it used to be

Those modifications are available in CPS 3.3.8 for everyone interested in testing.

Many thanks to Jean-Mat Grimaldi the maintainer of FCKeditor.Plone.

comment:7 Changed 14 years ago by madarche

  • Owner changed from ogrisel to madarche
  • Version changed from unspecified to TRUNK

comment:8 Changed 14 years ago by madarche

I have just been aware of what follows while reading/testing/bugfixing the FCKeditor code.

FCKeditor only officialy supports MSIE and the Gecko engines (Mozilla, Firefox, Netscape, etc.) and not Safari, Konqueror and Opera.

In details the situation is as follows:

Since the piece of common standard JavaScript? code doesn't cover all the functionalities Safari, Konqueror and Opera should not be able to use FCKeditor.

So what I suggest:

  1. First someone with Safari gives CPS + FCKeditor a try
  1. We decide if we want to loose compatibility with some browsers regarding the HTML editor
  1. We can contribute support for Safari and others to FCKeditor since FCKeditor is very modular and well thought
  1. We can ship both FCKeditor and Epoz2 and provide a fallback to Epoz2 for Safari, Konqueror and Opera.

This choice should be made quiet fast as CPS 3.4.0 is approaching.

comment:9 Changed 14 years ago by gracinet

Last time I checked (long ago), Epoz did not work on Safari either

comment:10 Changed 14 years ago by madarche

Thanks for the feedback Georges!

Could you find some time to test Safari with Epoz2 sometime before CPS 3.4.0?

comment:11 Changed 14 years ago by ogrisel

Since the epoz 2 demo is a bit hard to find, here is a direct link to it:

 http://www.zfl.uni-bielefeld.de/personal/mjablonski/epoz/index.html

And for fckeditor:

 http://www.fckeditor.net/demo/default.html

Happy testing!

comment:12 Changed 14 years ago by jmorliaguet

It's clear that support for Safari will come sooner or later.

cf.  http://www.fckeditor.net/donate/safari/default.html

I feel though that stability is more important than features, since the editor plays such a central role when editing documents.

To play it safe, I would vote for FCKEditor + fallback to Epoz2 for browsers that don't work well with FCKEditor, with the possibility to easily update the list of supported browsers.

comment:13 Changed 14 years ago by madarche

It is written on  http://www.zfl.uni-bielefeld.de/personal/mjablonski/epoz/index.html that only MSIE and Gecko browsers are supported. In the Epoz FAQ, it is said that Safari might be supported in the future :  http://mjablonski.zope.de/Epoz/FAQ.txt

For info, I have just checked that Konqueror 3.3.2 from KDE 3.3.2 is neither supported by the actual version of Epoz shipped by default with CPS, neither is it by the Epoz 2.x online demo.

So it seems that:

  • FCKeditor is more powerful and modular with a framework for translations, etc. than Epoz
  • Support for browsers in FCKeditor and Epoz is equivalent (only MSIE and Gecko), only FCKeditor is on the starting block for the Safari support

That said we should safely replace Epoz by FCKeditor and not ship Epoz anymore. No need for any fall-back support with Epoz.

Does everyone agree?

comment:14 Changed 14 years ago by madarche

  • Status changed from new to closed
  • Resolution set to fixed

This is finally fixed by changesets [29710] and [29711] which replace the Epoz product by the FCKeditor product and the semantic plugin (which is a plugin developed by Nuxeo, until equivalent functionalities are available in FCKeditor).

comment:15 Changed 14 years ago by madarche

If you are upgrading a Zope-CPS site that used to run Epoz, you might have an error like the following:

IOError: [Errno 2] No such file or directory:
'Products/Epoz/skins/epoz/epoz_script_main.js.dtml'

In this case just check if you still have a Products/Epoz? and if so, delete it and that should do it.

comment:16 Changed 14 years ago by madarche

Commit [29810] adds in CPSDefault installer the automatic installation of FCKeditor.

comment:17 Changed 14 years ago by madarche

The commits [29819] and [29831] were also needed to adapt CPSForum to another HTML editor than Epoz.

Note: See TracTickets for help on using tickets.