i am developing a confluence cloud plugin using forge custom ui which uses
“confluence:contextMenu” module by using forge/bridge i am getting only the selected text but i need the index and count same as inline comment how works, want to get the selection context
- window.getSelection() doesnot work from forge iframe.
Hi @ArnabBhowmik,
Welcome and thanks for your question.
Forge apps do not have access to the window object of the product as it would pose a security issue.
At the moment, the context menu module only provides what is outlined in the extension context, however I think what you are after is being tracked in this jira issue: FRGE-1162
I would recommend adding a comment explaining why you would like this data to be added to the extension context and watching the feature request for updates.
If i’ve misunderstood, please feel free to raise your own suggestion in the FRGE project with more information.
Cheers!
Mel
thank you for response other than i am trying to replicate highlighting feature of inline comment is it possible currently?
@ArnabBhowmik it is not currently possible in Forge to get this information within the extension context, or via the window.getSelection() - so your best bet would be to vote on the feature request and provide feedback so that it can be considered for the Forge roadmap.