Изменения документа Вложения
Редактировал(а) Георгий Глущенко 2026/07/02 17:46
От версии 16.1
отредактировано Георгий Глущенко
на 2026/07/02 17:46
на 2026/07/02 17:46
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/18.5.0]
К версии 15.1
отредактировано Андрей Ганьков
на 2026/01/23 10:50
на 2026/01/23 10:50
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/17.10.2]
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (2 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Автор документа
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki.g gv1 +xwiki:XWiki.gav
- XWiki.JavaScriptExtension[0]
-
- Код
-
... ... @@ -2,7 +2,6 @@ 2 2 function uploadTemporaryAttachment() { 3 3 // Require jquery locally until we are able to fully migrate this code away from prototype. 4 4 const form = this.property.up('form'); 5 - const propertyReferenceInput = this.property.querySelector('input[type="hidden"].property-reference'); 6 6 require(['jquery'], function ($) { 7 7 const data = new FormData(); 8 8 const uploadedFile = $('#attachfile')[0].files[0]; ... ... @@ -14,7 +14,7 @@ 14 14 "$services.localization.render('xe.attachmentSelector.upload.inProgress')", 'inprogress'); 15 15 const params = { 16 16 'form_token': $(form).find('[name="form_token"]').val(), 17 - 'sheet': ' XWiki.WYSIWYG.FileUploader',16 + 'sheet': 'CKEditor.FileUploader', 18 18 'outputSyntax': 'plain' 19 19 }; 20 20 ... ... @@ -41,7 +41,7 @@ 41 41 .prop('type', 'hidden') 42 42 .prop('name', 'uploadedFiles') 43 43 .prop('value', response.fileName)) 44 - property ReferenceInput.value=response.fileName;43 + $(form).find('input[type="hidden"].property-reference').prop('value', response.fileName); 45 45 this.updateAttachment(response.fileName, response.url); 46 46 this.dialog.closeDialog(); 47 47 }.bind(this)).fail(function () {
- XWiki.WikiMacroClass[0]
-
- Код
-
... ... @@ -121,9 +121,9 @@ 121 121 #set ($attachmentResource = '') 122 122 #end 123 123 #if ($displayImage) 124 - (% class="${ services.rendering.escape($!cssClass, 'xwiki/2.1')}#if (!$attachment) hidden#end" %)(((#if ("$!{attachmentResource}" != '' || $forceElement)#if($withLink)[[#end[[image:$services.rendering.escape(${attachmentResource}, 'xwiki/2.1')$!{imageParams}]]#if($withLink)>>attach:$services.rendering.escape(${attachmentResource},'xwiki/2.1')||rel=lightbox]]#{end}#end)))##124 + (% class="$!{cssClass}#if (!$attachment) hidden#end" %)(((#if ("$!{attachmentResource}" != '' || $forceElement)#if($withLink)[[#end[[image:$services.rendering.escape(${attachmentResource}, 'xwiki/2.1')$!{imageParams}]]#if($withLink)>>attach:$services.rendering.escape(${attachmentResource},'xwiki/2.1')||rel=lightbox]]#{end}#end)))## 125 125 #else 126 - (% class="${ services.rendering.escape($!cssClass, 'xwiki/2.1')}" %)#if ("$!{attachmentResource}" != '' || $forceElement)#if ($withLink)[[attach:${attachmentResource}||rel=__blank]]#{else}(% class="displayed" %)#if($targetPermView)$!{services.rendering.escape($!{attachmentName}, 'xwiki/2.1')}#{else}Access Denied#{end}(% %)#{end}#end(%%)##126 + (% class="$!{cssClass}" %)#if ("$!{attachmentResource}" != '' || $forceElement)#if ($withLink)[[attach:${attachmentResource}||rel=__blank]]#{else}(% class="displayed" %)#if($targetPermView)$!{services.rendering.escape($!{attachmentName}, 'xwiki/2.1')}#{else}Access Denied#{end}(% %)#{end}#end(%%)## 127 127 #end 128 128 #end 129 129