adding code to take out the http(s): from the editor url so that the mixed-content error does not occur.