Fixed issue with javascript which meant editor was not loading form content.