From f341f6bee51b574248ad42b1af6c04413a224727 Mon Sep 17 00:00:00 2001 From: Neeraj P Yetheendran Date: Tue, 23 Jan 2024 16:57:07 +0530 Subject: [PATCH] Fixed issues preventing build - html+django snippets are not parsing correctly due to script usage, replace with simple text snippets - Fix up incorrect link added in extending_client_side --- docs/extending/extending_client_side.md | 2 +- docs/releases/5.2.md | 2 +- docs/releases/6.0.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/extending/extending_client_side.md b/docs/extending/extending_client_side.md index 19e79d96a6..29d9310c57 100644 --- a/docs/extending/extending_client_side.md +++ b/docs/extending/extending_client_side.md @@ -213,7 +213,7 @@ For more complex widgets we can now integrate additional libraries whenever the In this example we will build a color picker widget using the [Coloris](https://coloris.js.org/) JavaScript library with support for custom widget options. -First, let's start with the HTML, building on the [Django widgets](django:ref/forms/widgets) system that Wagtail supports for `FieldPanel` and `FieldBlock`. Using the `build_attrs` method, we build up the appropriate Stimulus data attributes to support common data structures being passed into the controller. +First, let's start with the HTML, building on the [Django widgets](inv:django#ref/forms/widgets) system that Wagtail supports for `FieldPanel` and `FieldBlock`. Using the `build_attrs` method, we build up the appropriate Stimulus data attributes to support common data structures being passed into the controller. Observe that we are using `json.dumps` for complex values (a list of strings in this case), Django will automatically escape these values when rendered to avoid common causes of insecure client-side code. diff --git a/docs/releases/5.2.md b/docs/releases/5.2.md index 7b71433b81..98b2e2968c 100644 --- a/docs/releases/5.2.md +++ b/docs/releases/5.2.md @@ -499,7 +499,7 @@ The current approach will trigger a deprecation warning and will be removed in a #### Old -```html+django +```text {% load wagtailadmin_tags %}