Page 1 of 1

Copy node/attribute value by AuthorOperation

Posted: Fri Jun 05, 2015 2:03 pm
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

Re: Copy node/attribute value by AuthorOperation

Posted: Fri Jun 05, 2015 2:28 pm
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

Re: Copy node/attribute value by AuthorOperation

Posted: Fri Jun 05, 2015 2:42 pm
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

Re: Copy node/attribute value by AuthorOperation

Posted: Fri Jun 05, 2015 2:47 pm
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