-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input long text not wrap #214
Comments
You can include <script setup lang="ts">
import { Codemirror } from 'vue-codemirror'
import { EditorView } from '@codemirror/view'
</script>
<template>
<Codemirror :extensions="[EditorView.lineWrapping]" />
</template>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
`
import { Codemirror } from 'vue-codemirror'
<codemirror
v-model="code"
placeholder="..."
:style="{ height: height ,width:width}"
:options="cmOption"
:autofocus="true"
:indent-with-tab="true"
:tab-size="tabSize"
:extensions="extensions"
@ready="handleReady"
@change="changeText('change', $event)"
/>
const cmOption = {
lineNumbers: true,
lineWrapping: true
}
long text not wrap
`
Reproduction
`
import { Codemirror } from 'vue-codemirror'
<codemirror
v-model="code"
placeholder="..."
:style="{ height: height ,width:width}"
:options="cmOption"
:autofocus="true"
:indent-with-tab="true"
:tab-size="tabSize"
:extensions="extensions"
@ready="handleReady"
@change="changeText('change', $event)"
/>
const cmOption = {
lineNumbers: true,
lineWrapping: true
}
long text not wrap
`
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: