Editor definition - 5 UI
Deprecated
| Editor definition has been deprecated since Magnolia 6.0. It is part of the Magnolia 5 UI framework. Its configuration is now partly integrated into
 | 
What is an editor
Editor is a component that edits a content item. The editor typically
contains a form. In a content app, you should create an
editor
definition under the detail subapp. Define the node types the editor
edits, a form for editing them, and actions for saving the edit.
detail:
  editor:
    nodeType:
      icon: icon-node-content
      name: mgnl:contact
    actions:
      - name: commit
      - name: cancel
    form:
      tabs:
        - name: personal
          # field definitions| Property | Description | 
|---|---|
| 
 | required A node type that this editor component can edit and save. | 
| 
 | required A Magnolia or JCR node type such as  | 
| 
 | optional CSS class that identifies an icon displayed on the items in the workbench. | 
| 
 | required Actions available in the editor. Define the actions in separate action definitions and reference them here by name. | 
| 
 | required Name of a primary action. Typically you need at least  | 
| 
 | optional A secondary action area in the bottom left corner of the editor. Contains the action area configuration. For an example, see Configuring secondary actions. | 
| 
 | optional Add subnodes to match the secondary actions defined in the  | 
| 
 | required Name of a secondary action. | 
| 
 | optional Define a subnode for each action which requires its own renderer. | 
| 
 | required Name of the secondary action. | 
| 
 | required A renderer class if the secondary action requires one. Must implement  | 
| 
 | optional A form definition if this editor is used to edit form-like data. | 
| 
 | optional, default is  
 Click the expand/collapse button in the top right corner to toggle between the wide and normal (720px) modes. |