This issue has been created
There are 3 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e37a1958-9c3f-4df4-8982-6533bfb615fd XWIKI-23227 Open

Add support for overriding the default WYSIWYG editor from request

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-0b438672-ac77-4460-9e8a-59f302f33d63 Marius Dumitru Florea created this issue on 22/May/25 09:13
 
Summary: Add support for overriding the default WYSIWYG editor from request
Issue Type: cid:jira-generated-image-avatar-e37a1958-9c3f-4df4-8982-6533bfb615fd New Feature
Affects Versions: 17.3.0
Assignee: Unassigned
Components: Edit
Created: 22/May/25 09:13
Priority: cid:jira-generated-image-static-major-bce3657a-d908-47ce-9efa-8710a14387d9 Major
Reporter: Marius Dumitru Florea
Description:

Currently, you can configure the default WYSIWYG editor for a given user, subtree of pages, wiki and farm. The problem is that this makes it hard to test new, experimental, editors without affecting other users or your own productivity. It would be nice to be able to override the default editor for a single HTTP request, through the request parameters. This would allow an XWiki extension that provides a new editor to inject links in the Edit menu to quickly try the editor (i.e. to temporarily switch to the new editor for a single request).

 
 

3 updates

 
cid:jira-generated-image-avatar-0b438672-ac77-4460-9e8a-59f302f33d63 Changes by Marius Dumitru Florea on 22/May/25 09:14
 
Fix Version: 17.4.0
Difficulty: Unknown Easy
Assignee: Marius Dumitru Florea
 
 

1 comment

 
cid:jira-generated-image-avatar-0b438672-ac77-4460-9e8a-59f302f33d63 Marius Dumitru Florea on 22/May/25 09:21
 

In order to keep the URL reasonably short, I'm going to use the simple name of the editor data type in the request parameter name, even if that means that in theory we could have conflicts. I don't think this is a real problem because the request configuration is temporary and having two different editors with different data types that have the same short name on the same web page (request) is very low. The key I'm going to use looks like this:

<simpleTypeName>.<category>.editor

Here's an example for the org.xwiki.rendering.syntax.SyntaxContent data type and category "wysiwyg":

## Standalone edit mode
/xwiki/bin/edit/Some/Page?editor=wysiwyg&SyntaxContent.wysiwyg.editor=blocknote

## Inplace edit mode
/xwiki/bin/view/Some/Page?SyntaxContent.wysiwyg.editor=blocknote#edit