mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Added Line Wrapping to Codeview of CodeMirror (#9563)
* Added Line Wrapping to Codeview of CodeMirror In the formated code fields line breaks are not done, which requires scrolling. This might be configurable in the future. * Make line-wrapping an opt-in options Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
committed by
GitHub
parent
3bdf97afaa
commit
c16592806d
@@ -51,6 +51,10 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
lineWrapping: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: null,
|
||||
@@ -237,6 +241,7 @@ export default defineComponent({
|
||||
defaultOptions,
|
||||
{
|
||||
lineNumbers: props.lineNumber,
|
||||
lineWrapping: props.lineWrapping,
|
||||
readOnly: props.disabled ? 'nocursor' : false,
|
||||
mode: props.language,
|
||||
placeholder: props.placeholder,
|
||||
|
||||
Reference in New Issue
Block a user