Unfortunately I can't find a way to call this function outside of the scope of the editor page.
Any help would be appreciated.
Thanks
Rob