Releases: medienbaecker/kirby-tiptap
0.0.34
- Fix KirbyTag highlighting for tags with nested parentheses
- Fix
tel:link generation. Now correctly creates(tel: )tags instead of(link: )
0.0.33
- I've refactored the LinkButton and FileButton files that got increasingly complex
- Translations are now in separate JSON files in
translations/, making it easier to add additional translations - I've added a keyboard shortcut for the link dialog (⌘/Ctrl + K) and documented Tiptap's default shortcuts in the README
0.0.32
It's now possible to paste an email address onto a selected text to create an (email: ) tag, just like pasting an URL creates a (link: ) tag.
0.0.31
- Fixed
[object Object]classes when using custom plugins - Fixed invisible non-breaking-spaces
- Updated tiptap-php to 2.0
0.0.30
Fun fact: the Tiptap Starterkit has always included the Blockquote extension, but it wasn't properly integrated into the plugin until now.
With this release you can add blockquote to your field's buttons to enable the toolbar button. Blockquotes now display with a left border and appropriate spacing (similar to Kirby's quote block) and conditionally enable the keyboard shortcut (Control + Shift + B on Windows and Cmd + Shift + B on macOS) and markdown shorthand (>).
0.0.29
File handling improvements
The image button has been replaced with a file button that supports different file types and generates the appropriate KirbyTag: (image: ), (file: ) or (video: ).
Uploads
When the new uploads option is set to true, the file button now shows an "upload" option like the textarea.
You can also drag files directly into the editor to upload and insert them.
Other:
- Refactored PHP code (after the JS refactor in 0.0.28)
- Consistent code formatting
0.0.28
Tiptap Block
The Tiptap block can be used as a replacement for the default text block:
blocks:
fieldsets:
- heading
- tiptap
- imageCustom buttons
Create custom buttons that add any attributes to nodes:
// site/config/config.php
return [
'medienbaecker.tiptap.buttons' => [
'twoColumns' => [
'icon' => 'columns',
'title' => 'Two Columns',
'nodes' => ['paragraph'],
'attributes' => [
'class' => 'two-columns'
]
]
]
];Then use them in blueprints alongside core buttons:
tiptap:
buttons:
- bold
- italic
- "|"
- twoColumns # Your custom buttonOther
- Completely refactored to make the ever more complex plugin more maintainable
- Updated dependencies
0.0.27
There's a new allowHtml option for the tiptapText() method.
By default, HTML will now be encoded but you can disable this behaviour by setting allowHtml to true like this:
echo $page->text()->tiptapText([
'allowHtml' => true
]);0.0.24
- Prevent custom highlights inside of KirbyTags
0.0.23
It's now possible to edit image KirbyTags and editing links has been drastically improved:
