Skip to content

Commit c3d2ceb

Browse files
committed
Add block snippet for Tiptap block
1 parent 6151a00 commit c3d2ceb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
'blueprints' => [
1616
'blocks/tiptap' => __DIR__ . '/blueprints/blocks/tiptap.yml',
1717
],
18+
'snippets' => [
19+
'blocks/tiptap' => __DIR__ . '/snippets/blocks/tiptap.php',
20+
],
1821
'fields' => [
1922
'tiptap' => [
2023
'mixins' => [

snippets/blocks/tiptap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
/** @var \Kirby\Cms\Block $block */ ?>
4+
<?= $block->text()->tiptapText();

0 commit comments

Comments
 (0)