In a component how do i get the current active document?

Hey guys,

In a component how do i get the current active document?

You may want to read this reply (I found this using the Search field on top of the forum page). :

// Rolf

You mean actually the document currently loaded in the canvas, or the document which owns the component?
Both answers are in the post @RIL linked btw.