Component Props
name | description | type | default |
---|---|---|---|
value(v-model) | Editor content | string | "" |
options | Configuration options of codemirror5 | EditorConfiguration | DEFAULT_OPTIONS |
placeholder | Editor placeholder content to introduce codemirror related files | string | "" |
border | Whether to display editor borders | boolean | false |
width | width | string | 100% |
height | height | string | 100% |
original-style | Using the original style, disable the second modification of the style for this component (but does not affect width, height, and border) | boolean | false |
KeepCursorInEnd | Always keep the mouse position on the last line | boolean | false |
merge | merge mode, can also be used as diff pattern | boolean | false |
name | Name, which is passed to the textarea inside the component(This is useless🙃) | string | - |