There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2cd0aa25-e953-4f1e-8207-f2b07c085184 XWIKI-13858 Open

Inconsistency between Long Text and Content fields display in AWM wizard and entries

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-aa5a3709-bf83-4961-a408-1cbc3ed2e064 Charpentier Lucas on 24/Oct/24 15:11
 

This weird behaviour on the class editor is very probably related to https://github.com/xwiki/xwiki-platform/blob/102124c214f107bf0bfd2b709969482625f1af53/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/Content.xml#L46-L47

## Don't load the WYSIWYG editor when editing the class, because it's too heavy.

#set ($useWysiwygEditor = false)

From Marius comment, except if we rework the wiki editor tool, option 2. is not doable because we cannot use this tool for LongTexts.
The only solution left is to have both fields follow the user/wiki preferences.
Note that it's already the case for the entry editor in 16.9.0-SNAPSHOT.
I'll propose in a PR an implementation to respect the user prefered editor for the Content field.

 
cid:jira-generated-image-avatar-aa5a3709-bf83-4961-a408-1cbc3ed2e064 Charpentier Lucas on 24/Oct/24 15:14
 
This weird behaviour on the class editor is very probably related to https://github.com/xwiki/xwiki-platform/blob/102124c214f107bf0bfd2b709969482625f1af53/xwiki-platform-core/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/Content.xml#L46-L47

bq. ## Don't load the WYSIWYG editor when editing the class, because it's too heavy.
bq. #set ($useWysiwygEditor = false)


From Marius comment, except if we rework the wiki editor tool, option 2. is not doable because we cannot use this tool for LongTexts.
The only solution left is to have both fields follow the user/wiki preferences.
Note that it's already the case for the entry editor in 16.9.0-SNAPSHOT.
I'll propose in a PR an implementation to respect the user prefered editor for the Content field.


There's still the option of fixing the toolbar for longTexts, but I'd rather focus on the XWiki standard default editor, which is WYSIWYG.