Commit 7356aefb authored by Jérome Perrin's avatar Jérome Perrin

xhtml_style: minimal emulation of router "raw" command

In xhtml style, clicking on <a> links in a non editable ck editor does nothing. It's possible to to use Ctrl+right click to trigger the popup menu and "open in new tab", but that's confusing for users.

Implement something minimal so that the event handler registered in ck editor gadget also works in html style.
parent 3d3ee5da
Pipeline #7207 failed with stage
in 0 seconds
......@@ -98,6 +98,12 @@
.allowPublicAcquisition('translateHtml', function (argument_list) {
return argument_list[0];
})
.allowPublicAcquisition('redirect', function (argument_list) {
var argument = argument_list[0];
if (argument.command === 'raw' && argument.options && argument.options.url) {
location.replace(argument.options.url);
}
})
/////////////////////////////////////////////////////////////////
// declared methods
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment