Is it possible to activate the Edit mode of a document in webplayer from a mashup ?


In the webplayer, I'm trying to activate the edit mode of a document from a mashup using javascript API but I didn't find example or element in the API that allow that.

How, from javascript API, can we check if edit mode is activated on the current document or to activate it (aka do the same action than the click on "Edit" button) ?

Thanks for your help

NB : simulate click event on Edit button is not possible as the button is in an iframe that may be (and in my case is) in another domain (so can't access the DOM object of the iframe).

(1) Answer