XWIKI-20455: Image dialog from several editor instances should be isolated
- Introduce a target parameter on the attachmentGalleryPicker macro - Create an image selector modal instance per editor - Use the source document of the current editor instance to resolve and search for the images
Showing
- xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-picker/xwiki-platform-attachment-picker-macro/src/main/java/org/xwiki/attachment/picker/AttachmentGalleryPickerMacroParameters.java 28 additions, 0 deletions...chment/picker/AttachmentGalleryPickerMacroParameters.java
- xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-picker/xwiki-platform-attachment-picker-macro/src/main/java/org/xwiki/attachment/picker/internal/AttachmentGalleryPickerMacro.java 3 additions, 0 deletions...achment/picker/internal/AttachmentGalleryPickerMacro.java
- xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-picker/xwiki-platform-attachment-picker-macro/src/test/java/org/xwiki/attachment/picker/internal/AttachmentGalleryPickerMacroTest.java 9 additions, 0 deletions...ent/picker/internal/AttachmentGalleryPickerMacroTest.java
- xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-picker/xwiki-platform-attachment-picker-ui/src/main/resources/Attachment/Picker/Code/CKEditorImagePlugin.xml 19 additions, 7 deletions.../resources/Attachment/Picker/Code/CKEditorImagePlugin.xml
- xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-picker/xwiki-platform-attachment-picker-webjar/src/main/webjar/attachmentGalleryPicker.js 21 additions, 3 deletions...-picker-webjar/src/main/webjar/attachmentGalleryPicker.js
- xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/resources/xwiki-image/imageSelector.js 169 additions, 127 deletions...r-plugins/src/main/resources/xwiki-image/imageSelector.js
- xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/resources/xwiki-image/imageWizard.js 3 additions, 0 deletions...tor-plugins/src/main/resources/xwiki-image/imageWizard.js
- xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/ImageSelectorService.xml 7 additions, 3 deletions...r-ui/src/main/resources/CKEditor/ImageSelectorService.xml
- xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/ImageSelectorServiceUIX/DocumentTree.xml 30 additions, 21 deletions...sources/CKEditor/ImageSelectorServiceUIX/DocumentTree.xml
- xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/ImageSelectorServiceUIX/Icon.xml 14 additions, 6 deletions.../main/resources/CKEditor/ImageSelectorServiceUIX/Icon.xml
- xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/ImageSelectorServiceUIX/Upload.xml 41 additions, 32 deletions...ain/resources/CKEditor/ImageSelectorServiceUIX/Upload.xml
- xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-ui/src/main/resources/CKEditor/ImageSelectorServiceUIX/Url.xml 14 additions, 6 deletions...c/main/resources/CKEditor/ImageSelectorServiceUIX/Url.xml
Please register or sign in to comment