import * as ko from "knockout" ; import { ImplementorBase } from "survey-knockout-ui" ; import { TabJsonEditorTextareaPlugin , TextareaJsonEditorModel } from "@survey/creator" ; const template = require ( "./json-editor-textarea.html" ) ; ko . components . register ( "svc-tab-json-editor-textarea" , { viewModel : { createViewModel : ( params ) => { const plugin = params . data ; new ImplementorBase ( plugin . model ) ; const model = < TextareaJsonEditorModel > plugin . model ; model . canShowErrors = false ; return model ; } } , template : template } ) ;