0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 00:17:06 +01:00
wagtail/client
Joel William 4a933df9fb Rich Text (Draftail) - Ensure SVG paths are correctly handled for custom features #12418
Ensure the documented support for providing an array of SVG paths to the 'icon' attribute when using `register_rich_text_features` is correctly supported.

Fixes #11777
Fixes #11051
Fixes #10319

See https://docs.wagtail.org/en/stable/extending/extending_draftail.html#creating-new-blocks
> It can also be an array of strings, to use SVG paths, or SVG symbol references for example 'icon': ['M100 100 H 900 V 900 H 100 Z'],. The paths need to be set for a 1024x1024 viewbox.
2024-10-27 20:20:02 +10:00
..
scss Fix font size for custom listing button styles (#12456) 2024-10-24 09:33:28 +01:00
src Rich Text (Draftail) - Ensure SVG paths are correctly handled for custom features #12418 2024-10-27 20:20:02 +10:00
storybook
tests
extract-translatable-strings.js
package-lock.json
README.md
tailwind.config.js 'Prefers-contrast' admin theming (#12348) 2024-10-17 09:13:22 +01:00
webpack.config.js ImageBlock for StreamField (rebase of #11791) (#12416) 2024-10-21 16:11:34 +01:00

Wagtail client-side components

This library aims to give developers the ability to subclass and configure Wagtail's UI components.

Usage

npm install wagtail
import { Explorer } from 'wagtail';
// [...]
<Explorer />;

Development

# From the project root, start the webpack + styles compilation.
npm run start

You will also need:

Releases

The front-end is bundled at the same time as the Wagtail project. This package also aims to be available separately on npm as wagtail.