function createInlineEditorForDocument(doc, range, inlineContent) {
        // Hide the container for the editor before creating it so that CodeMirror doesn't do extra work
        // when initializing the document. When we construct the editor, we have to set its text and then
        // set the (small) visible range that we show in the editor. If the editor is visible, CM has to
        // render a large portion of the document before setting the visible range. By hiding the editor
        // first and showing it after the visible range is set, we avoid that initial render.
        $(inlineContent).hide();
        var inlineEditor = _createEditorForDocument(doc, false, inlineContent, range);
        inlineEditor._hostEditor = getCurrentFullEditor();
        $(inlineContent).show();

        return { content: inlineContent, editor: inlineEditor };
    }
Creates a new inline Editor instance for the given Document.
The editor is not yet visible or attached to a host editor.
@param {!Document} doc  Document for the Editor's content
@param {?{startLine:Number, endLine:Number}} range  If specified, all lines outside the given
     range are hidden from the editor. Range is inclusive. Line numbers start at 0.
@param {HTMLDivContainer} inlineContent
@param  {function(inlineWidget)} closeThisInline

@return {{content:DOMElement, editor:Editor}}