From 5ace5eb3452cf6f4877cd7b9b8cefe3c03cf8ad3 Mon Sep 17 00:00:00 2001 From: LucasC Date: Tue, 10 Dec 2024 22:03:56 +0100 Subject: [PATCH] XWIKI-13858: Inconsistency between Long Text and Content fields display in AWM wizard and entries (#3594) * In all places where we can edit this object, we follow the userPreference regarding text editors. (cherry picked from commit a81ba09a5324f8f952dbd6b4211f1d079bcd0971) --- .../src/main/resources/AppWithinMinutes/Content.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/Content.xml b/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/Content.xml index b6c5b146bd16..f2fb240dba6a 100644 --- a/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/Content.xml +++ b/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/Content.xml @@ -43,15 +43,13 @@ ## We are editing the class so the content must be read from / written to the template document. #set ($name = 'templateContent') #set ($editedDocument = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template")) - ## Don't load the WYSIWYG editor when editing the class, because it's too heavy. - #set ($useWysiwygEditor = false) #else ## We are editing an application entry so the content must be read from / written to the current document. #set ($name = 'content') #set ($editedDocument = $tdoc) - ## Use the preferred content editor. - #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') #end + ## Use the preferred content editor. + #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') {{html clean="false"}} ## The "content" id is expected by some JavaScript and CSS code. #set ($id = 'content')