File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
libs/visual-programming-system/src/forms Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,14 @@ export type FormField = (
5656 fieldType : 'TextArea' ;
5757 value : string ;
5858 isCodeEditor ?: boolean ;
59- editorLanguage ?: string ;
59+ editorLanguage ?:
60+ | 'javascript'
61+ | 'json'
62+ | 'html'
63+ | 'css'
64+ | 'typescript'
65+ | 'markdown'
66+ | 'text' ;
6067 onChange ?: ( value : string , formComponent : IFormsComponent ) => void ;
6168 }
6269 | {
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ export class TextAreaFieldComponent extends FormFieldComponent<TextAreaFieldProp
4040 this . fieldName = props . fieldName ;
4141
4242 // temp disabled code editor
43- this . isCustomEditor = getIsCustomEditorEnabled ( ) ;
43+ this . isCustomEditor =
44+ getIsCustomEditorEnabled ( ) && props . editorLanguage !== 'text' ;
4445 if ( this . isCustomEditor ) {
4546 this . customEditor = getCreateCustomEditorInstanceFunc ( ) ;
4647 }
You can’t perform that action at this time.
0 commit comments