2.2. Editor Plug-ins

The Perch editing interface can be customised with plugins.

Editors

The currently available editors can be found in the add-ons section of the Perch website.

To install unzip the folder and place the plugin into the perch/plugins/editors folder. You then use the pligin in the same way that the default markitup editor is used, by adding it to a Perch template tag. For example, if I had installed and wanted to use TinyMCE I would use the following.

<perch:contenttype="textarea"editor="tinymce" html="true"/>

As most editors create HTML you need to set html="true" on your region in addition to adding the editor attribute.

UI Customizations

The Perch web interface can be customised with your own CSS and JavaScript by placing your files in the `perch/plugins/ui`

This folder includes a special file _config.inc. This file gets included in the <head> of all Perch pages. Edit this file to add a link to your own files.

<link rel="stylesheet" href="/perch/plugins/ui/my_css_file.css" />

This really just provides a mechanism to hook your own files into the interface without needing to edit any core Perch files. This means that your changes won't need to be re-done each time you update Perch.

Knowledge Tags

This page was: Helpful | Not Helpful