Get the text value with LF line ending. This is needed since if there are CR \r characters in the text input (e.g. users of Windows doing copy/paste) the default mode of monaco-editor is TextDefined which means if the text contains CR character(s), it will automatically be treated as CRLF. As such, we want an utility method to extract the text value with line ending option LF to force omission of CR characters See https://github.com/finos/legend-studio/issues/608

  • Parameters

    • editor: IStandaloneCodeEditor

    Returns string