If I add a content editor web part to a document library view for - say 'AllItems.aspx', the 'File' and 'Library' ribbon sections are hidden while the page is opened.
How can I select the document list web part in javascript to show its context ribbon sections? Thank you.