I figured it out. To fix this problem, I first set the Editor to preview mode this will remove all the editor's toolbars, then set the visibility to hidden using a Javascript function to be called with Onclick event
EditorView(Editor1,2)
Editor1.visibility='hidden'