CSS: "link" open in browser

Are you missing a feature? Request its implementation here.
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

CSS: "link" open in browser

Post by stdu »

Just an little idea: it would be nice, if your "link"-property in CSS would have an optional attribute like "browser", which forces the link to open in the browser (perhaps the default browser as defined in preferences) instead of opening in Oxygen. This would be very useful for consulting external ressources (in HTML) while editing.

Best regards,
Stefan
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS: "link" open in browser

Post by Radu »

Hi Stefan,

So you have local edited files which point with links to HTML pages, right?
What version of Oxygen are you using? The standalone or Eclipse plugin version? And on what operating system?

When clicking a link which points to binary resources like PDF, Oxygen should always use the web browser to view the resource.
Also, when referencing a remote HTML file and if the current edited file is from the local disk, Oxygen should also use the web browser to open the HTML file. Is the HTML extension associated to the web browser on your platform? For example if you double click an HTML file in the windows explorer, is it opened in the web browser?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Re: CSS: "link" open in browser

Post by stdu »

Hi Radu,

I have files in a remote exist-db with an value, which I inserted via CSS in an URL. Like:

element:after {
link: "http://www.exmaple.com" attr(corresp) ".html";
}

Oxygen loads the document and open it in text mode. I have Windows XP, the system default browser for .html is Firefox and functions well and I also have the latest Oxygen XML Author Version (Standalone).

Regards,
Stefan
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS: "link" open in browser

Post by Radu »

Hi Stefan,

This is a case in which the edited file is remote and the referenced HTML is also remote and we considered that there might be a change for the user to want to edit that HTML file.

Is the HTML documentation on the same server from where you open the XML file. Do you connect to the Exist server using WebDav or using the Exist connection?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Re: CSS: "link" open in browser

Post by stdu »

Hi Radu,

the documentation is on another server because this is an external service from another institution. We connect our exist-db via webdav.

Regards,
Stefan
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Re: CSS: "link" open in browser

Post by stdu »

A little annotation: we also use the css "link" proporty to link to an index (register) in our exist-database. In this case, it is very comfortable, that the linked document (here: xml) opens in oxygen.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS: "link" open in browser

Post by Radu »

Hi Stefan,

Thanks for the details.
We'll try to modify the place where the decision is taken whether to open the HTML in the browser or in the editor to also take your use-case into account.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: CSS: "link" open in browser

Post by Radu »

Hi,

Oxygen 14.1 was just released and this use case should work properly (open the HTML in the Web browser).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Re: CSS: "link" open in browser

Post by stdu »

Hi Radu,

I ran again in this issue with Oxygen 14.2: I would like to open an URL, which is noted in the CSS with the help of the oXygen CSS property "link". Some URLs are openend by oXygen in the browser, sometimes are opened in oXygen itself (even HTML). I don't get it, how oXygen decides this. Is there a possibility to influence that behauviour (via Config, CSS or Java)?

Thank for your advice!

Kind regards
Stefan
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: CSS: "link" open in browser

Post by Dan »

Hello Stefan,

If you want the links to be opened in the browser, then make sure that you register the extension of the link targets with the "HTML Editor". For this, use "Options"/"Preferences"/"File Types".

If you want to open the link in the editor then register the extension of the link targets with the "XML Editor".

Best regards,
Dan
Post Reply