Changes Report
Enable the lightbox view for images by default
![]()
The lighbox feature is now enabled by default.
Restricted context macro
![]()
A new restricted parameter has been introduced in the context macro to allow executing content in a restricted content. See Context Macro for more details.
Extension plan in isolation
![]()
It's now much easier to run extension jobs isolated from the current instance. The following two new properties has been added to ExtensionRequest:
- coreExtensionRepository: a custom repository to use to find available core extension
- installedIgnored: true if already-installed extensions should not be taken into account while resolving the install plan
New script service for HTML operations
![]()
A new HTML script service has been introduced allowing to use the recently introduced HTMLElementSanitizer in scripts. It can be used in velocity with $services.html.xxx.
Filter for testing for restricted HTML cleaning
![]()
A new filter for HTML cleaning allows testing if HTML content would be affected by restricted cleaning, allowing to determine automatically if HTML content could also be used with restricted cleaning without risking any breakage.
More required rights analyzers
![]()
Even more required rights analyzers have been added in XWiki 15.10, now analyzing HTML Macros, translation documents, gadgets, icon sets, and configurable sections.
Pre-edit check can be cached
![]()
When editing a page, once a pre-edit check result is presented to the user, it will not be presented again unless something changed. For instance, once a user chooses to edit a page owned by an extension, he or she will not be warned again. However, if a page is locked twice by different users, they will be warned at each edit attempt.
Pre-edit check can be cached
![]()
It is now possible to define a caching strategy for pre-edit checks, allowing to define when to re-display the results of a check to the user if they have been previously forced.
New API for macro required rights analyzers
![]()
A new API for required rights analyzers for macros has been introduced that makes it simpler to introduce a required rights analyzer for a macro. Such an analyzer is necessary for all macros that support wiki syntax outside the content (e.g., in a parameter) or any kind of script or other content that uses the author's rights.
![]()
Added keyboard support to the drawer. The focus will not go in the drawer when it's closed. The drawer can be closed by pressing `Escape` and a new button is added to make it easy to close the drawer.
Refactored tips panel extension point
![]()
The tips panel extension point has been refactored to be safer and easier to use. See the "Add Tip to Tips Panel" extension point for more details on how to define a tip in 15.1+. Note that any custom tip you may have will continue to work as is, but we encourage you to move the tip definitions from the UIXP parameter to the UIXP content as the old way is now deprecated and will be removed one day (and it's also safer to use the new way).
Limit parameter in tag cloud
![]()
The tag cloud macro supports a new parameter to limit the number of tags to the n most occurring tags.
Tags are hidden when there are none
![]()
When there aren't any tags assigned to a page, the text “Tags:” is no longer displayed at the bottom of the page unless the user has edit rights.
What's New API
![]()
New experimental API to gather external news related to XWiki.
Example to get news items from a xwikiblog source, for a given user, filtered by a category:
@Inject
@Named("xwikiblog")
private NewsSourceFactory factory;
@Inject
@Named("xwikiblog")
private NewsConfiguration configuration;
...
List<NewsSourceDescriptor> descriptors = this.configuration.getNewsSourceDescriptors();
NewsSourceDescriptor descriptor = descriptors.get(0);
List<NewsSourceItem> items = this.factory.create(descriptor.getParameters())
.forUser(...)
.forCategories(...)
.build()
NewsContent content = items.get(0).getDescription().get();
String itemDescription = content.getContent();
Syntax itemSyntax = content.getSyntax();
...Velocity macro for sanitizing URLs
![]()
A new velocity macro has been provided to allow getting sanitized URLs from request parameters to be used in HTML.
![]()
The tabulator order in the page creation Location breadcrumb now matches the visuals, going from left to right as expected.
![]()
The administration right buttons now have a proper text alternative. It can be displayed on hover.
![]()
The location picker breadcrumb icons now have a proper text alternative displayed on hover to assist in the understanding of their use.
Add parameters to the CKEditor html conversion request
![]()
A new xwiki:ckeditor:convertHTML event is send before a request to convert some content to HTML is sent by CKEditor. Listeners can add new request parameters by add properties on the data object send with the event. The example below show how to add an example parameter with value 1.
$(document).on('xwiki:ckeditor:convertHTML', function(event, data) {
data.example = 1;
});Allow to chose conflict fallback version when merging
![]()
The storage merge API have been improved in order to allow consumers of the API to define what should be the fallback versions to use in case of merging conflicts: by default the version is still the current version element, but it's now also possible to chose the next version element.