<AppRichText
  name="{{item.codeName}}"
{{#eq ctrlType 'form'}}
  :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}}
{{#if item.psEditor.readOnly}}
  :readonly="{{item.psEditor.readOnly}}"
{{/if}}
{{#if item.psEditor.editorParams.height}}
  :height="{{item.psEditor.editorParams.height}}"
{{/if}}
{{#if item.psEditor.editorParams.uploadParams}}
  :uploadParams="{{item.psEditor.editorParams.uploadParams}}"
{{/if}}
{{#if item.psEditor.editorParams.exportParams}}
  :exportParams="{{item.psEditor.editorParams.exportParams}}"
{{/if}}
  :context="state.context"
  :viewParams="state.viewParams"
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
  :value="state.data.{{item.psEditor.name}}"
  :data="state.data"
  @editorEvent="onEditorEvent"
{{/if}}
{{#eq ctrlType 'grid'}}
  :value="record.{{item.psEditor.name}}"
  :data="record"
  @editorEvent="onEditorEvent($event,index)"
{{/eq}}
/> 
