From 19024c2b48743367df4a9c9d3f7f8509b7345945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 28 Jul 2026 16:31:49 +0200 Subject: [PATCH 1/3] Fixed highlight --- .../rich_text/create_custom_richtext_block.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content_management/rich_text/create_custom_richtext_block.md b/docs/content_management/rich_text/create_custom_richtext_block.md index 1a298ed45c..ef51747804 100644 --- a/docs/content_management/rich_text/create_custom_richtext_block.md +++ b/docs/content_management/rich_text/create_custom_richtext_block.md @@ -25,11 +25,11 @@ It also sets the attribute type to `richtext` (line 15): Then, create a subscriber that converts a string of data into XML code. Create a `src/Event/Subscriber/RichTextBlockSubscriber.php` file. -In line 32, `my_block` is the same name of the block that you defined in line 3 above. -Line 32 also implements the `PreRender` method. +In line 28, `my_block` is the same name of the block that you defined in line 3 above. +Line 28 also implements the `PreRender` method. Lines 41-51 handle the conversion of content into an XML string: -``` php hl_lines="32 41 42 43 44 45 46 47 48 49 50 51" +``` php hl_lines="28 41-51" [[= include_code('code_samples/back_office/online_editor/src/event/subscriber/RichTextBlockSubscriber.php') =]] ``` From 80bb74fd4d2a61cff00c5e919533c70919917262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 28 Jul 2026 16:32:44 +0200 Subject: [PATCH 2/3] Update docs/content_management/rich_text/create_custom_richtext_block.md --- .../rich_text/create_custom_richtext_block.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content_management/rich_text/create_custom_richtext_block.md b/docs/content_management/rich_text/create_custom_richtext_block.md index ef51747804..a475365f38 100644 --- a/docs/content_management/rich_text/create_custom_richtext_block.md +++ b/docs/content_management/rich_text/create_custom_richtext_block.md @@ -29,7 +29,7 @@ In line 28, `my_block` is the same name of the block that you defined in line 3 Line 28 also implements the `PreRender` method. Lines 41-51 handle the conversion of content into an XML string: -``` php hl_lines="28 41-51" +``` php hl_lines="28 37-47" [[= include_code('code_samples/back_office/online_editor/src/event/subscriber/RichTextBlockSubscriber.php') =]] ``` From 15c56ca04c6dcd4ed82959b242a2ebed8100c229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 28 Jul 2026 16:33:12 +0200 Subject: [PATCH 3/3] Apply suggestion from @mnocon --- .../rich_text/create_custom_richtext_block.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content_management/rich_text/create_custom_richtext_block.md b/docs/content_management/rich_text/create_custom_richtext_block.md index a475365f38..8798265c6a 100644 --- a/docs/content_management/rich_text/create_custom_richtext_block.md +++ b/docs/content_management/rich_text/create_custom_richtext_block.md @@ -27,7 +27,7 @@ Create a `src/Event/Subscriber/RichTextBlockSubscriber.php` file. In line 28, `my_block` is the same name of the block that you defined in line 3 above. Line 28 also implements the `PreRender` method. -Lines 41-51 handle the conversion of content into an XML string: +Lines 37-47 handle the conversion of content into an XML string: ``` php hl_lines="28 37-47" [[= include_code('code_samples/back_office/online_editor/src/event/subscriber/RichTextBlockSubscriber.php') =]]