Set readonly value during initialisation of raw editor (#16163)

This commit is contained in:
ian
2022-10-25 22:02:29 +08:00
committed by GitHub
parent 51bb1f6464
commit 12a425a90b

View File

@@ -62,6 +62,7 @@ onMounted(async () => {
extraKeys: { Ctrl: 'autocomplete' },
cursorBlinkRate: props.disabled ? -1 : 530,
placeholder: props.placeholder !== undefined ? props.placeholder : t('raw_editor_placeholder'),
readOnly: readOnly.value,
});
// prevent new lines for single lines