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 (3 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -28,20 +28,18 @@ 28 28 #end 29 29 30 30 #macro (configureDefaultEditor $editors $defaultEditor) 31 - #set ($escapedFieldName = $escapetool.xml($fieldName)) 32 32 <dt> 33 - <label for="$ escapedFieldName">32 + <label for="$fieldName"> 34 34 #set ($key = "edit.defaultEditor.$dataTypeValue.replace('#', '.')") 35 - $ escapetool.xml($services.localization.render($key))34 + $services.localization.render($key) 36 36 </label> 37 - <span class="xHint">$ escapetool.xml($services.localization.render("${key}.hint"))</span>36 + <span class="xHint">$services.localization.render("${key}.hint")</span> 38 38 </dt> 39 39 <dd> 40 40 ## Add the configuration object if it doesn't exist. 41 41 <input type="hidden" name="objectPolicy" value="updateOrCreate" /> 42 - <input type="hidden" name="$escapetool.xml("${editorBindingClassName}_${objectNumber}_dataType")" 43 - value="$escapetool.xml($dataTypeValue)" /> 44 - <select id="$escapedFieldName" name="$escapedFieldName"> 41 + <input type="hidden" name="${editorBindingClassName}_${objectNumber}_dataType" value="$dataTypeValue" /> 42 + <select id="$fieldName" name="$fieldName"> 45 45 ## This option is needed in order to allow the user to reset the default editor and inherit the configuration from 46 46 ## the parent configuration source. 47 47 <option value="">---</option> ... ... @@ -75,7 +75,7 @@ 75 75 {{html clean="false"}} 76 76 <!-- The tabs used to show the configuration properties for each editor. --> 77 77 <ul class="nav nav-tabs" role="tablist" 78 - data-defaultEditorId="$! escapetool.xml($services.edit.syntaxContent.defaultWysiwygEditor.descriptor.id)">76 + data-defaultEditorId="$!services.edit.syntaxContent.defaultWysiwygEditor.descriptor.id"> 79 79 <li role="presentation" class="hidden"> 80 80 <a href="#tab-pane-template" aria-controls="tab-pane-template" role="tab" data-toggle="tab"></a> 81 81 </li>
- XWiki.ConfigurableClass[0]
-
- configureGlobally
-
... ... @@ -1,0 +1,1 @@ 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.length) {24 + if (activeTab.size() === 0) { 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 2.wikigeneratedheader {4 +#admin-page-content > h1.wikigeneratedheader { 5 5 display: none; 6 6 } 7 7 #admin-page-content .codeToExecute > form#wysiwyg {