A new type of WYSIWYG editor for Kirby
We unfortunately introduced a nasty regression in 1.0.3, which rendered the same image for every image in the editor. This release will fix it. https://github.com/getkirby/editor/issues/246
$page->text()->blocks()->excerpt(140)
method #159This is the first official version of the new Kirby Editor ?
Kirby Editor is a new visual writing and layout field for Kirby. Compose long-form text with consistent inline styles. Add images, videos, quotes and more. Bring your own block types and always rest assured that the output will be valid, customizable HTML.
Use the Editor's block types to create your content:
You need more? Create your own block type extensions to integrate the Editor into your projects seamlessly.
Writing your articles and copy always feels natural in the Editor. Use markdown shortcuts such as #
, -
, ****
and more to add new blocks without ever leaving your keyboard.
Use the intuitive drag & drop interface to rearrange blocks.
The HTML of each block can be fine-tuned and customized. Create your own block snippets and use Kirby's familiar template engine to create the markup you are looking for.
Import HTML & Markdown or paste content directly into the Editor to create new blocks. The smart parser of the Editor will always give you clean structured data for even the worst HTML (We are looking at you, Word)
This is the first beta release for the editor. Please help us get it as stable as possible. Report any issues here: https://github.com/getkirby/editor/issues
Thanks to our amazing translators, we already have 9 translations for this plugin. We are very happy about any PRs with additional language files. You can find all the other translations over here: https://github.com/getkirby/editor/tree/master/i18n Always start with the English file as a reference.
Please see the other alpha releases for the full list of changes since this project started.
Block::isEmpty
method, which can be used to remove empty blocks when rendering them to HTML<?= $page->text()->blocks()->filterBy('isEmpty', false) ?>
editor:
type: editor:
allowed:
- h1
- paragraph
- image
editor.block("intro", {
extends: "paragraph"
...
});
Check out the block examples for more details.