${ask} editor variable return an error
Posted: Thu Feb 22, 2024 12:47 pm
Hi,
I'm using a custom action in CSS, that use the editor variable ${ask}. We use this editor variable to ask for an URL that will be used as an xslt parameter.
This URL "https://www.youtube.com/?gl=FR&hl=fr" return an error
I'm using oXygen Desktop 25.1 and a custom DITA framework.
Thanks for your help!
I'm using a custom action in CSS, that use the editor variable ${ask}. We use this editor variable to ask for an URL that will be used as an xslt parameter.
Code: Select all
{
content:
oxy_button(action, oxy_action(
name, '[+Button]',
description, 'description',
operation, 'ro.sync.ecss.extensions.commons.operations.XSLTOperation',
arg-script, 'actions/custom.xslt',
arg-action, 'Replace',
arg-externalParams, "g-url=${ask('Enter an URL : ', url)}"
),
transparent, true,
actionContext, element,
showIcon, true);
color: blue;
font-weight: bold;
}
Code: Select all
Chunk [g-url="https://www.youtube.com/?gl=FR&hl=fr"] is not a valid entry.
Thanks for your help!