You are not logged in Log in Join
You are here: Home » Members » hewei » Zope RPMs for RedHat » Epoz and CMFVisualEditor Together in Harmony(Enhanced Solution) » howto_view

Log in
Name

Password

 

Epoz and CMFVisualEditor Together in Harmony(Enhanced Solution)

 

Created by hewei . Last modified 2004-08-14 07:31:12.

There are so far 2 wysiwyg editors available for Plone, Epoz and CMFVisualEditor . Each of them installed solely works well. But you can't have them both working in Plone 1.x and Plone 2.0.

The reason is that each of them overrides the default Plone skin template's marco wysiwygEditorBox with their own version ignoring the other's existance. But why should they?

It seems that Plone 2.1 will overcome this problem according to the how-to Epoz and CMFVisualEditor together in harmony by jladage. But so far we have do a little bit work to make Epoz and CMFVisualEditor working together in harmony.

The solution provided in the above how-to is to customize the wysiwygEditorBox macro which takes precedence over each wysiwyg's version support both of them.

However, the above solution seems not working in Plone 2.0 for the missing of compatible_browser method. And more seriously, the text format changing capability of Plone's document editing form is lost. So, user will no longer being able to select, among Structured Text, HTML and Plain Text, their document's format once they choose to use any of a wysiwyg editor for editing.

My solution enhanced jladage's version by adding javascript codes to toggle between wysiwyg editor and textarea mode upon changing of the text format selection.

To install it, just follow the steps jladage's described but use my version of wysiwyg_support.pt .

Please note: overwriting the original wysiwyg_support.pt shipped with Plone 2.0 in the file system with this file won't work because that in the skin directory of CMFPlone has the lowest precedence.