This chapter explains how to install the eZ Publish Online Editor v.4.0.
Before doing anything else, please verify that the requirements are met.
eZ Publish Online Editor, which was licensed under the eZ proprietary license before, is now available under GPL and included in the eZ Publish distribution for versions 3.8.1 and later. You can download the latest Online Editor version here.
Windows users should download the "zip" package. Linux/UNIX users may download any package format as long as the necessary unpacking tools are available.
Copy the downloaded package into the "extension" directory of your eZ Publish installation.
Windows users should unzip the files. The "ezdhtml" directory will be created inside the "extension" directory.
Linux users may use of the following commands depending on the file type:
[tar.gz]:
$ tar -zxvf ezoe-extension-[ExtensionVersion].tar.gz
[bz2]:
$ tar -jxvf ezoe-extension-[ExtensionVersion].bz2
[zip]:
$ unzip ezoe-extension-[ExtensionVersion].zip
At this point, the unpacked files should be available under "/extension/ezdhtml".
To enable OE for all of your siteaccesses, log in to your eZ Publish administration interface, click on the "Setup" tab, and then click "Extensions" on the left.
You will see the list of available extensions.
The list of avaiable extensions.
Select the "ezdhtml" item and click the "Apply changes" button.
Alternatively, you can also edit the "site.ini.append.php" file located in the "/settings/override" directory. Add the following line under the "[ExtensionSettings]" section:
ActiveExtensions[]=ezdhtml
Create the file and/or the section if they do not exist.
To enable OE for only a single siteaccess called "example", open the "site.ini.append.php" file located in the "/settings/siteaccess/example" directory. Add the following line under the "[ExtensionSettings]" section:
ActiveAccessExtensions[]=ezdhtml
Create the file and/or the section if they do not exist.
In eZ Publish, images are usually stored as Image objects. OE allows you to insert various objects into XML fields. OE uses the IDs of the image classes to determine whether the inserted object is an image or not. To check your Image Class ID, log in to your eZ Publish administration interface, access the "Setup" tab, and then click "Classes" on the left.
You will see the list of class groups.
The list of class groups.
Select the "Media" group and find the image class. The default ID of this class is 5 in a standard eZ Publish installation.
The list of classes inside the "Media" group.
If your Image class ID is not 5, open the "site.ini.append.php" file located in the "/extension/ezdhtml/settings/" directory. Search for the following line under the "[MediaClassSettings]" section:
ImageClassID[]=5
Replace "5" with the value of the image class that your installation is using.
If you have created different/additional image class, you can add these by extending the "ImageClassID[]" configuration array. For example, if you have added 2 new classes that you're using for images and their IDs are 13 and 34, you'll have to make sure that the "[MediaClassSettings]" section contains the following lines:
ImageClassID[]=13 ImageClassID[]=34
To do this, log in to your eZ Publish administration interface, select the "Setup" tab, and then click the "Clear all caches" button.
If you use eZ Publish 3.6 or higher, you can also use the developer toolbar (if enabled) located on the right hand side. Simply select "All caches" from the drop-down list and click the "Clear" button.
The developer toolbar allows to clear caches.
The other way to clear all caches is to remove the contents of "/var/cache/" and/or "/var/example/cache" directory (where "example" is the name of your siteaccess). This can either be done manually or by making use of a script.
Linux users may launch the following script:
$ ./bin/shell/clearcache.sh --clear-all
If you have PHP CLI installed, you can also do the following (this script should also work on Windows):
$ ./bin/php/ezcache.php --clear-all
From 3.10, the "clearcache.sh" script will be disabled. You will have to use "ezcache.php" instead.
Browsers usually cache visited pages in a folder somewhere. The next time the same pages are visited, they are loaded faster because some of the information already exists on the local storage device. This is a wonderful feature, but sometimes it may cause problems when you're upgrading the Online Editor. If you already have OE installed and you're upgrading it then you will have to clear the browser's cache. The following text reveals how to clear the caches on different types of browsers.
Please note that there are some menu differences between the versions for different operating systems. In Windows ("Tools" -> "Options"), Linux ("Edit" -> "Preferences"), and Mac ("Firefox" -> "Preferences").