Open the link in the topic dita with our own CMS URL

Are you missing a feature? Request it's implementation here.
dangoakachan
Posts: 4

Open the link in the topic dita with our own CMS URL

Tue Aug 14, 2018 7:21 am

We integrated the oxygen web author into our CMS system, and now we have a problem that needs to be solved, but we don't know how to do.

Scenes:
When we open the dita file in our CMS,and click on the link(like xref tag),a new tab including the oxygen editor will be opened, which jump out our CMS system. But we hope to change this behavior, open the corresponding CMS address of the dita file instead. How can I do?Are there any settings to change the default behavior?
cristi_talau
Posts: 198

Re: Open the link in the topic dita with our own CMS URL

Tue Aug 14, 2018 9:05 am

Hello,

Opening links in a new tab is the default behavior of Web Author when clicking links. You can customize it by using the JavaScript API [1] and listening to "LINK_OPENED" events [2].

You can call "e.preventDefault()" on the event and handle link opening by yourself, e.g. change the "src" attribute of the "iframe".

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... ng_js.html
[2] https://www.oxygenxml.com/maven/com/oxy ... Event.html
dangoakachan
Posts: 4

Re: Open the link in the topic dita with our own CMS URL

Tue Aug 14, 2018 9:33 am

cristi_talau wrote:Hello,

Opening links in a new tab is the default behavior of Web Author when clicking links. You can customize it by using the JavaScript API [1] and listening to "LINK_OPENED" events [2].

You can call "e.preventDefault()" on the event and handle link opening by yourself, e.g. change the "src" attribute of the "iframe".

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... ng_js.html
[2] https://www.oxygenxml.com/maven/com/oxy ... Event.html


Thank you for your reply, we will try this method.

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 1 guest