Modifications pour le document DefaultWYSIWYGEditorConfig
Modifié par superadmin le 2026/01/29 15:29
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (2 modifications, 1 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -28,18 +28,20 @@ 28 28 #end 29 29 30 30 #macro (configureDefaultEditor $editors $defaultEditor) 31 + #set ($escapedFieldName = $escapetool.xml($fieldName)) 31 31 <dt> 32 - <label for="$ fieldName">33 + <label for="$escapedFieldName"> 33 33 #set ($key = "edit.defaultEditor.$dataTypeValue.replace('#', '.')") 34 - $services.localization.render($key) 35 + $escapetool.xml($services.localization.render($key)) 35 35 </label> 36 - <span class="xHint">$services.localization.render("${key}.hint")</span> 37 + <span class="xHint">$escapetool.xml($services.localization.render("${key}.hint"))</span> 37 37 </dt> 38 38 <dd> 39 39 ## Add the configuration object if it doesn't exist. 40 40 <input type="hidden" name="objectPolicy" value="updateOrCreate" /> 41 - <input type="hidden" name="${editorBindingClassName}_${objectNumber}_dataType" value="$dataTypeValue" /> 42 - <select id="$fieldName" name="$fieldName"> 42 + <input type="hidden" name="$escapetool.xml("${editorBindingClassName}_${objectNumber}_dataType")" 43 + value="$escapetool.xml($dataTypeValue)" /> 44 + <select id="$escapedFieldName" name="$escapedFieldName"> 43 43 ## This option is needed in order to allow the user to reset the default editor and inherit the configuration from 44 44 ## the parent configuration source. 45 45 <option value="">---</option> ... ... @@ -73,7 +73,7 @@ 73 73 {{html clean="false"}} 74 74 <!-- The tabs used to show the configuration properties for each editor. --> 75 75 <ul class="nav nav-tabs" role="tablist" 76 - data-defaultEditorId="$!services.edit.syntaxContent.defaultWysiwygEditor.descriptor.id"> 78 + data-defaultEditorId="$!escapetool.xml($services.edit.syntaxContent.defaultWysiwygEditor.descriptor.id)"> 77 77 <li role="presentation" class="hidden"> 78 78 <a href="#tab-pane-template" aria-controls="tab-pane-template" role="tab" data-toggle="tab"></a> 79 79 </li>
- XWiki.ConfigurableClass[0]
-
- scope
-
... ... @@ -1,0 +1,1 @@ 1 +WIKI - configureGlobally
-
... ... @@ -1,1 +1,0 @@ 1 -Oui
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -21,7 +21,7 @@ 21 21 }); 22 22 // Show the configuration for the active editor, or the first one if none is active. 23 23 var activeTab = editorTabs.find('a[data-editorId="' + editorTabs.attr('data-defaultEditorId') + '"]'); 24 - if (activeTab. size()=== 0){24 + if (!activeTab.length) { 25 25 activeTab = editorTabs.find('a[data-editorId]').first(); 26 26 } 27 27 activeTab.tab('show');
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -1,7 +1,7 @@ 1 1 /* Show only the generic form while the page is loading. The other forms, which have editor specific configuration 2 2 properties, will be moved into tabs by the JavaScript code. */ 3 3 #admin-page-content .codeToExecute > form, 4 -#admin-page-content > h 1.wikigeneratedheader {4 +#admin-page-content > h2.wikigeneratedheader { 5 5 display: none; 6 6 } 7 7 #admin-page-content .codeToExecute > form#wysiwyg {