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 (#3594)

* In all places where we can edit this object, we follow the userPreference regarding text editors.
  • Loading branch information
Sereza7 authored Dec 10, 2024
1 parent 4241c3c commit a81ba09
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a81ba09

Please sign in to comment.