Page 1 of 1

link / a href option for xhtml toolbar / menu

Posted: Mon Mar 09, 2015 8:37 pm
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.

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

Posted: Tue Mar 10, 2015 10:34 am
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

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

Posted: Tue May 19, 2015 11:18 am
by Radu
Hi,

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

Regards,
Radu