Copy node/attribute value by AuthorOperation

Post here questions and problems related to editing and publishing DITA content.
xephon
Posts: 160
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Copy node/attribute value by AuthorOperation

Post by xephon »

Hi,

I'd like to create a button in the author view to copy the content of an element/attribute to the clipboard. I could not find a copyToClipboard AuthorOperation. Does it exist?

Best regards
Stean
stefan-jung.org – Your DITA/DITA-OT XML consultant
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Copy node/attribute value by AuthorOperation

Post by Radu »

Hi Stefan,

We do not have such a pre-defined operation, it's not something which has been requested before.
So you want to copy the XML content of the current element to the clipboard? You will probably need to implement a custom operation to do that.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xephon
Posts: 160
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Re: Copy node/attribute value by AuthorOperation

Post by xephon »

Hi Radu,

OK, thanks for your reply. I'd like to have a topic containing a group of reusable elements that have some kind of "pick-my-element-type", "copy-my-ID" and "fetch-the-key-of-my-topic" button on the one hand with a tiny "paste-a-node-with-a-conkeyref" function on the other hand in another topic.

Picking and clicking is more intuitive for our authors than the conkeyref dialog.

Best regards
Stefan
stefan-jung.org – Your DITA/DITA-OT XML consultant
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Copy node/attribute value by AuthorOperation

Post by Radu »

Hi Stefan,

But we already have something similar already. If you select an entire element which has an ID and copy it (just plain Ctrl-C copying) you can go to another DITA topic, right click, Paste special->Paste as content key reference.

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