We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
` 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 `
vue-codemirror version 6.1.1
npm
The text was updated successfully, but these errors were encountered:
You can include EditorView.lineWrapping in the extensions prop like this:
EditorView.lineWrapping
extensions
<script setup lang="ts"> import { Codemirror } from 'vue-codemirror' import { EditorView } from '@codemirror/view' </script> <template> <Codemirror :extensions="[EditorView.lineWrapping]" /> </template>
Sorry, something went wrong.
No branches or pull requests
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: