Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Bastian Allgeier edited this page Nov 19, 2019 · 14 revisions

Kirby Editor is a new type of WYSIWYG editor for Kirby. It's a mixture between a regular WYSIWYG and a block editor to bring together the best parts of both worlds in a user-friendly interface.

How does it look like?

Editor Screencast

Installation

Manual

Download and copy this repository to /site/plugins/editor.

Composer

composer require getkirby/editor

Requirements

You must use Kirby 3.3.0 or newer in combination with the Kirby Editor.

Blueprint setup

Once the plugin is installed, you can use the new editor field type in your blueprints:

fields:
  text:
    label: Editor
    type: editor

Read more …

In your templates

The editor stores its content as JSON. To convert it to HTML you can use the blocks field method in your templates.

<?= $page->text()->blocks() ?>

Read more …

Block types

The Kirby Editor comes with a set of default block types to create rich content.

Read more …

Block snippets

You can customize the HTML output of each block individually with custom block snippets. All snippets for editor blocks must be located in /site/snippets/editor.

Read more …

Block extensions

The editor can be extended with custom block plugins.

Read more …