Skip to content

Setting "line-separator" is displayed as an exception #61

@User-Clb

Description

@User-Clb

let codeVal = ref({ "name": "maybaby", "year": 25, "weight": 45, "height": 165 });

Image

<code-mirror
ref="editorRef"
v-model="codeVal"
:basic="true"
:dark="getTheme() == 'dark' ? true : false"
:lang="lang"
:placeholder="placeholder"
:phrases="phrases"
style="height: 400px;"
:extensions="extensions"
:tab="true"
:tab-size="2"
:wrap="true"
:allow-multiple-selections="true"
:readonly="false"
:disabled="false"
line-separator="\r\n"
@contextmenu="handleContextMenu"
@change="handleChange"
/>

Image
Remove line-separator="\r\n" and it will be displayed normally

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions