Skip to content

Component Props

namedescriptiontypedefault
value(v-model)Editor contentstring""
optionsConfiguration options of codemirror5EditorConfigurationDEFAULT_OPTIONS
placeholderEditor placeholder content to introduce codemirror related filesstring""
borderWhether to display editor bordersbooleanfalse
widthwidthstring100%
heightheightstring100%
original-styleUsing the original style, disable the second modification of the style for this component (but does not affect width, height, and border) booleanfalse
KeepCursorInEndAlways keep the mouse position on the last linebooleanfalse
mergemerge mode, can also be used as diff patternbooleanfalse
nameName, which is passed to the textarea inside the component(This is useless🙃)string-

Released under the MIT License.