Skip to content

2.48.0

Choose a tag to compare

@RicLeP RicLeP released this 08 Oct 16:48
· 12 commits to master since this release
  • Allow configuration of TipTap extensions loaded into the rich-text renderer.
  • Added support for wrapping images inserted in rich-text in <figure> elements with <figcaption> from the image meta title.
  • Allow transformation of figure images using the Storyblok image service via package configuration

The <figure> element is not enabled by default

// config/storyblok.php
[
...
    'tiptap' => [
        'extensions' => [
            new \Storyblok\Tiptap\Extension\Storyblok(),
            new \Riclep\Storyblok\Support\TipTapFigure(), // use the figure plugin instead of the default img
        ],
        'figure-transformation' => [
            'width' => 100,
            'height' => 100, // set to null to preserve ratio height when scaling
            'filters' => 'filters:quality(80)', // see: https://www.storyblok.com/docs/api/image-service
        ]
    ],
...
]

Full Changelog: 2.47...2.48