Modifications pour le document ImageEditorService
Modifié par Florent Charton le 2026/03/13 11:04
Depuis la version 4.1
modifié par Florent Charton
sur 2026/03/13 11:04
sur 2026/03/13 11:04
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-ckeditor-ui/17.10.4]
À la version 1.1
modifié par superadmin
sur 2022/06/20 08:49
sur 2022/06/20 08:49
Commentaire de modification :
Install extension [org.xwiki.contrib:application-ckeditor-ui/1.63.1]
Résumé
-
Propriétés de la Page (2 modifications, 0 ajouts, 0 suppressions)
-
Objets (0 modifications, 0 ajouts, 2 suppressions)
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 - xwiki:XWiki.fcharton1 +XWiki.superadmin - Contenu
-
... ... @@ -51,7 +51,7 @@ 51 51 #set ($discard = $xwiki.linkx.use($services.webjars.url('selectize.js', 'css/selectize.bootstrap3.css'), 52 52 {'type': 'text/css', 'rel': 'stylesheet'})) 53 53 #set ($discard = $xwiki.ssfx.use('uicomponents/suggest/xwiki.selectize.css', true)) 54 - #set ($discard = $xwiki.s sx.use('CKEditor.ImageEditorService'))54 + #set ($discard = $xwiki.jsx.use('CKEditor.ImageEditorService')) 55 55 <select id="imageStyles"></select> 56 56 </dd> 57 57 #end ... ... @@ -100,22 +100,13 @@ 100 100 <dd> 101 101 <label> 102 102 $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.size.width.label')) 103 - <input type=" text" name="imageWidth" id="imageWidth" />103 + <input type="number" name="imageWidth" id="imageWidth" /> 104 104 </label> 105 105 <label> 106 106 $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.size.height.label')) 107 - <input type=" text" name="imageHeight" id="imageHeight" />107 + <input type="number" name="imageHeight" id="imageHeight" /> 108 108 </label> 109 - <button type="button" class="btn btn-default image-size-lock image-size-locked"> 110 - $services.icon.renderHTML('lock') 111 - </button> 112 - <button type="button" class="btn btn-default image-size-lock image-size-unlocked hidden"> 113 - $services.icon.renderHTML('unlock') 114 - </button> 115 115 </dd> 116 - <dd class='hidden has-warning'> 117 - <span class="help-block outscaleWarning"></span> 118 - </dd> 119 119 <dt> 120 120 <label for="imageBorder"> 121 121 $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.border.label')) ... ... @@ -135,22 +135,22 @@ 135 135 $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.hint')) 136 136 </span> 137 137 </dt> 138 - <dd class="alignments">129 + <dd> 139 139 <label> 140 - #set ($noneOptionLabel= $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.none')))141 - <inputtype="radio"name="alignment" value="none"/>$noneOptionLabel131 + <input type="radio" name="alignment" value="none"/> 132 + $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.none')) 142 142 </label> 143 143 <label> 144 - #set($startOptionLabel=$escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.start')))145 - <inputtype="radio"name="alignment" value="start"/>$startOptionLabel135 + <input type="radio" name="alignment" value="start"/> 136 + $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.start')) 146 146 </label> 147 147 <label> 148 - #set ($centerOptionLabel= $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.center')))149 - <inputtype="radio" name="alignment" value="center"/>$centerOptionLabel139 + <input type="radio" name="alignment" value="center"/> 140 + $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.center')) 150 150 </label> 151 151 <label> 152 - #set ($endOptionLabel= $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.end')))153 - <inputtype="radio" name="alignment" value="end"/>$endOptionLabel143 + <input type="radio" name="alignment" value="end"/> 144 + $escapetool.xml($services.localization.render('ckeditor.plugin.image.imageEditor.advancedTab.alignment.option.end')) 154 154 </label> 155 155 </dd> 156 156 <dt> ... ... @@ -168,6 +168,10 @@ 168 168 </form> 169 169 </div> 170 170 </div> 162 + <input type="hidden" name="defaultImageStylesRestURL" id="defaultImageStylesRestURL" 163 + value="$services.imageStyle.getDefaultImageStyleRestPath()" /> 164 + <input type="hidden" name="imageStylesRestURL" id="imageStylesRestURL" 165 + value="$services.imageStyle.getImageStylesRestPath()" /> 171 171 </div> 172 172 {{/html}} 173 173 #end ... ... @@ -175,6 +175,7 @@ 175 175 176 176 {{velocity output='false'}} 177 177 #if ($xcontext.action == 'get') 178 - #sendRequiredSkinExtensions() 173 + #getRequiredSkinExtensions($requiredSkinExtensions) 174 + #set ($discard = $response.setHeader('X-XWIKI-HTML-HEAD', $requiredSkinExtensions)) 179 179 #end 180 180 {{/velocity}}
- XWiki.StyleSheetExtension[0]
-
- Mode de mise en cache
-
... ... @@ -1,1 +1,0 @@ 1 -long - Code
-
... ... @@ -1,11 +1,0 @@ 1 -#advanced .image-size-lock { 2 - margin-top: -2px; 3 -} 4 - 5 -#advanced .alignments label { 6 - margin-right: 1em; 7 -} 8 - 9 -#standard .xform, #advanced .xform { 10 - margin-top: floor(@font-size-base * 1.4); 11 -} - Content Type
-
... ... @@ -1,1 +1,0 @@ 1 -LESS - Parser le contenu
-
... ... @@ -1,1 +1,0 @@ 1 -Non - Utiliser cette extension
-
... ... @@ -1,1 +1,0 @@ 1 -onDemand
- XWiki.UIExtensionClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -Non - Asynchronous rendering
-
... ... @@ -1,1 +1,0 @@ 1 -Non - Executed Content
-
... ... @@ -1,10 +1,0 @@ 1 -{{velocity}} 2 -{{html}} 3 -<div class="hidden"> 4 -<input type="hidden" name="defaultImageStylesRestURL" id="defaultImageStylesRestURL" 5 - value="$escapetool.xml($services.imageStyle.getDefaultImageStyleRestPath())" /> 6 -<input type="hidden" name="imageStylesRestURL" id="imageStylesRestURL" 7 - value="$escapetool.xml($services.imageStyle.getImageStylesRestPath())" /> 8 -</div> 9 -{{/html}} 10 -{{/velocity}} - Extension Point ID
-
... ... @@ -1,1 +1,0 @@ 1 -org.xwiki.platform.template.header.after - Extension ID
-
... ... @@ -1,1 +1,0 @@ 1 -org.xwiki.platform.ckeditor.imageEditorService.template.header.after - Extension Scope
-
... ... @@ -1,1 +1,0 @@ 1 -wiki