Page 1 of 1

Shortcut key to insert a particular element

Posted: Tue Oct 23, 2018 7:50 pm
by hymanshu
Is there a way to create a shortcut key and insert a particular element, say ph?
I am moving from ArborText to Oxygen. In AT, I created custom shortcut keys to insert common elements. How can I do the same in Oxygen?

Re: Shortcut key to insert a particular element

Posted: Wed Oct 24, 2018 8:27 am
by Radu
Hi,

You would have two options:

1) Code templates:

https://www.oxygenxml.com/doc/versions/ ... lates.html

A defined code template can also have a keyboard shortcut.

2) If you are working in the Author visual editing mode, you can extend in the Oxygen Preferences->"Document Type Associations" page the framework configuration for your current used XML vocabulary and in the "Author" tab add a new Author action, action which has a shortcut and which you can later add to the menus, toolbars.

https://www.oxygenxml.com/doc/versions/ ... tions.html

Regards,
Radu

Re: Shortcut key to insert a particular element

Posted: Mon Oct 29, 2018 12:28 pm
by hymanshu
Thanks. Do you have an example of a code template to insert an element (<ph> or <codeph>, or any other element)?
Is there a shortcut key for Paste as Text too? I can't find it.

Re: Shortcut key to insert a particular element

Posted: Mon Oct 29, 2018 12:36 pm
by hymanshu
Please ignore. I found the way to add an element shortcut key.