link / a href option for xhtml toolbar / menu

Are you missing a feature? Request its implementation here.
whyme
Posts: 93
Joined: Fri Mar 08, 2013 8:58 am

link / a href option for xhtml toolbar / menu

Post by whyme »

In the standard oXygen Author menu for docbook, a variety of linking mechanisms are provided in the default toolbar and menu, and these are convenient.

But I don't think a corresponding function exists in the Author mode for xhtml. Going into the custom settings for the xhtml menus and toolbars, I find no clear way to include an easy way to mark up a text with <a> and @href value. Or it's there and I'm missing it. In either case, it would be nice to have feature be an automatic part of the default menu and toolbar xhtml files being edited in the Author mode.
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: link / a href option for xhtml toolbar / menu

Post by Radu »

Hi,

Thanks for the suggestion.
We will try to add a link action for XHTML in Oxygen 17.0 (which should be released around April-May this year).

You can also customize the XHTML document type and add one yourself if you want.
In the Oxygen Preferences->Document Type Association page you can edit the XHTML document type, in the Author->Actions tab add a new action as follows:

http://www.oxygenxml.com/forum/files/customizeAHref.png

and then add that action to the main XHTML menu, contextual menu and toolbar.

Or you can create a new code template in the Preferences->Editor / Templates / Code Templates page which inserts an XML fragment like:

Code: Select all

<a href="${ask('Href:', relative_url)}">${selection}</a>
The fragment has editor variables inside it which get expanded when it is inserted.
Some other useful editor variables:

http://www.oxygenxml.com/doc/ug-oxygen/ ... ables.html

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

Re: link / a href option for xhtml toolbar / menu

Post by Radu »

Hi,

Based on your feedback Oxygen 17 now has a default toolbar action to insert links in XHTML documents.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply