From aaaee2725fb1f8436d50b1add49ac7a37dfdc932 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Tue, 10 Mar 2026 14:33:57 +0100 Subject: [PATCH] Fix: Readonly on RichText --- CHANGELOG.md | 4 ++++ templates/fields.html.twig | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe07f783..e7d8c474 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [UNRELEASED] + +- Fix application of the read-only option on RichText fields. + ## [1.21.28] - 2026-02-16 - Fix template generation diff --git a/templates/fields.html.twig b/templates/fields.html.twig index fa568b2c..861c950f 100644 --- a/templates/fields.html.twig +++ b/templates/fields.html.twig @@ -82,6 +82,7 @@ {% elseif type == 'richtext' %} {{ macros.textareaField(name, value, label, field_options|merge({ 'enable_richtext': true, + 'disabled': readonly, 'field_class': 'col-12', 'label_class': '', 'input_class': '',