There are 3 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-3658fa78-90b1-4702-bf53-5e0456429af8 XWIKI-13858 Open

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

 
View issue   ยท   Add comment
 

3 comments

 
cid:jira-generated-image-avatar-288ba93a-4060-41c0-ba56-41c142de4d28 Charpentier Lucas on 24/Oct/24 15:17
 
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)

This condition was added with XWIKI-8734 .


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.
 
cid:jira-generated-image-avatar-288ba93a-4060-41c0-ba56-41c142de4d28 Charpentier Lucas on 24/Oct/24 15:20
 
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)

This condition was added with XWIKI-8734 .


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.



____
The reason for the change we want to revert for XWIKI-8734 was that the CKEditor was too heavy to get in the UI. However, it seems like nowadays we have it in other places in the UI and it does not pose any issue. I'll try reverting this change (removing the logic that looks like a bug/inconsistency for a new user) and test changes to make sure it's not an issue nowadays.
 
cid:jira-generated-image-avatar-288ba93a-4060-41c0-ba56-41c142de4d28 Charpentier Lucas on 24/Oct/24 15:21
 
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)

This condition was added with XWIKI-8734
https://github . com/xwiki/xwiki-platform/commit/e6b6769e0b582ff79a1cf6c3e0d4ad25a37b34eb .


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.


____
The reason for the change we want to revert for XWIKI-8734 was that the CKEditor was too heavy to get in the UI. However, it seems like nowadays we have it in other places in the UI and it does not pose any issue. I'll try reverting this change (removing the logic that looks like a bug/inconsistency for a new user) and test changes to make sure it's not an issue nowadays.