code: function(escapePosition) {
  			if (!this.isActive()) {
  				return;
  			}
  			if (this._compoundChange) {
  				this.endUndo();
  				this._compoundChange = null;
  			}
  			this._sortedPositions = null;
  			var model = this.linkedModeModel;
  			this.linkedModeModel = model.previousModel;
  			model.parentGroup = model.previousModel = undefined;
  			if (this.linkedModeModel) {
  				this.linkedModeModel.nextModel = undefined;
  			}
  			if (!this.linkedModeModel) {
  				var editor = this.editor;
  				var textView = editor.getTextView();
  				textView.removeKeyMode(this);
  				textView.removeEventListener("Verify", this.linkedModeListener.onVerify);
  				textView.removeEventListener("ModelChanged", this.linkedModeListener.onModelChanged);
  				var contentAssist = this.contentAssist;
  				contentAssist.removeEventListener("Activating", this.linkedModeListener.onActivating);
  				contentAssist.offset = undefined;
  				this.editor.reportStatus(messages.linkedModeExited, null, true);
  			}
  			if (escapePosition && typeof model.escapePosition === "number") {
  				editor.setCaretOffset(model.escapePosition, false);
  			}
  			this.selectLinkedGroup(0);
  		}
docs: Exits Linked Mode. Optionally places the caret at linkedMode escapePosition.
  @param {Boolean} [escapePosition=false] if true, place the caret at the  escape position.