Skip to content

Commit

Permalink
XWIKI-13858: Inconsistency between Long Text and Content fields displ…
Browse files Browse the repository at this point in the history
…ay in AWM wizard and entries

* In all places where we can edit this object, we follow the userPreference regarding text editors.
  • Loading branch information
Sereza7 committed Oct 24, 2024
1 parent 25e463a commit 9b364d6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@
#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
#set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg')
{{html clean="false"}}
## The "content" id is expected by some JavaScript and CSS code.
#set ($id = 'content')
Expand Down

0 comments on commit 9b364d6

Please sign in to comment.