CSS: "link" open in browser

Are you missing a feature? Request it's implementation here.
stdu
Posts: 80

CSS: "link" open in browser

Thu Aug 30, 2012 12:00 pm

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: 5226

Re: CSS: "link" open in browser

Thu Aug 30, 2012 12:53 pm

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: 80

Re: CSS: "link" open in browser

Thu Aug 30, 2012 1:18 pm

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: 5226

Re: CSS: "link" open in browser

Fri Aug 31, 2012 12:56 pm

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: 80

Re: CSS: "link" open in browser

Fri Aug 31, 2012 5:49 pm

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: 80

Re: CSS: "link" open in browser

Fri Aug 31, 2012 6:17 pm

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: 5226

Re: CSS: "link" open in browser

Mon Sep 03, 2012 10:44 am

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: 5226

Re: CSS: "link" open in browser

Fri Oct 19, 2012 2:25 pm

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: 80

Re: CSS: "link" open in browser

Thu Nov 20, 2014 6:59 pm

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: 221

Re: CSS: "link" open in browser

Fri Nov 21, 2014 10:26 am

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

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 0 guests