Skip to the content
Documentation

Online editor settings

No ratings yet

This page is for administrators. It explains which files shape the online editor and what is usually changed in them. Every setting is listed on the two reference pages, ezoe.ini and ezoe_attributes.ini.

Where the settings are and how to see them

The shipped files are extension/ezoe/settings/ezoe.ini and ezoe_attributes.ini. Never edit them: put your changes in settings/override/ezoe.ini.append.php, in a siteaccess (settings/siteaccess/<siteaccess>/ezoe.ini.append.php) or in an extension of your own. Setup > INI settings shows each setting as it is in effect for a siteaccess, and which file sets it.

The settings view of ezoe.ini for the admin siteaccess

Setup > INI settings > ezoe.ini: the settings in effect for a siteaccess, and which file sets each one.

Clear the INI and template caches after a change, and reload the edit form.

The engine and the switch

[EditorSettings] EditorEngine chooses the default engine (tinymce3, tinymce8, or tiptap when that extension is active). EngineSwitch=enabled shows the switch below each field. Set both per siteaccess, not in the shipped file. See Setting up the online editor.

The toolbar

The buttons come from [EditorLayout] Buttons[], in groups separated by |. A class attribute can use another set: the Tag preset of an XML block field (for example mini, defined in ezxml.ini) selects the block [EditorLayout_mini]. TinyMCE 8 maps each button name to a button of its own with [Engine_tinymce8] ToolbarMap[] and leaves out names it has no counterpart for.

The toolbar of the online editor

The toolbar comes from the Buttons of [EditorLayout] in ezoe.ini; each button maps to a TinyMCE 8 button.

# settings/override/ezoe.ini.append.php: a shorter toolbar
[EditorLayout]
Buttons[]
Buttons[style]=formatselect,bold,italic
Buttons[]=|
Buttons[lists]=bullist,numlist
Buttons[]=|
Buttons[link]=link,unlink
Buttons[]=|
Buttons[embed]=image,object
Buttons[]=|
Buttons[]=disable

The look of the editor and of the text in it

  • Skin: Skin (default or o2k7, shipped o2k7). With TinyMCE 3, SkinVariant (silver or black) chooses a variant of the o2k7 skin. A skin of your own goes in design/<your design>/stylesheets/skins/<name>/ with the files ui.css, content.css and dialog.css.
  • The text in the editing area: add style sheets with design.ini [StylesheetSettings] EditorCSSFileList[], and for the dialogs EditorDialogCSSFileList[]. These change only the editor, not the site or the administration.
  • Custom attributes previewed as styles: CustomAttributeStyleMap[] shows custom attributes such as width, margin or border as the matching CSS while you edit.
# extension/mysite/settings/design.ini.append.php
[StylesheetSettings]
EditorCSSFileList[]=my_editor_content.css

Custom tags and custom attributes

Which tags, classes, custom tags and custom attributes exist is set in content.ini (for example [CustomTagSettings] and the blocks of each tag). ezoe_attributes.ini decides how a custom attribute appears in the dialogs: its label, type of control, default value and whether it is required. content.ini [CustomTagSettings] CustomTagsDescription[] gives custom tags readable names in the dialog. See Configuration settings ezoe_attributes.ini.

Uploads from the editor

The Upload tab of the embed dialog accepts the file types of UploadFileExtensions[]. UploadExtensionCheck decides when the server checks them (shipped: for every engine except TinyMCE 3). A name with an executable type anywhere in it is always refused. UploadFromUrl lets editors fetch a file from a web address, up to UploadFromUrlMaxSize (145M) within UploadFromUrlTimeout (300 seconds). The type of item a file becomes comes from upload.ini.

Pasting from Word

When you paste from a word processor, the editor turns the structure into paragraphs, headings, lists and tables, and drops the formatting. Rules in settings/wordmatch.ini can give pasted table cells and other tags a class, based on the style Word used:

# settings/override/wordmatch.ini.append.php
[td]
MatchString[tdBlue]=mso-shading: white; mso-pattern: gray-20 black

Store the draft right after pasting a large text, and check the result in the preview.

What can go wrong

  • A button does not appear. The engine has no counterpart for it (TinyMCE 8 leaves such names out), it needs a plugin that is not active, or it depends on a custom tag that content.ini does not define (underline, pagebreak).
  • A change has no effect. It was made in the shipped file and overwritten by an update, or a siteaccess file sets the same value. Setup > INI settings shows which file wins.

Read more

In this section

Contributors

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Spell Checking

    Greg McAvoy-Jensen ·

    To enable spell checking simply set these values in extension/ezoe/settings/ezoe.ini:
    [EditorSettings]
    Plugins[]=spellchecker
    [EditorLayout]
    Buttons[]=spellchecker
    This enables the spellchecker plugin on TinyMCE and works fine at least for English language sites. The ini file has additional instructions on spell check options.

Comments

Add a comment

Comments are read by a moderator before they appear.