Vue component editor
', + handlerVue: 'return {}', + renderVarHtml: null, + ignoreMustache: true, + }, + inspector: [ + { + type: 'FormInput', + field: 'componentName', + config: { + label: 'Component Name', + helper: 'Name of the component', + }, + }, + { + type: EditorFieldInspector, + field: 'templateVue', + config: { + rows: 5, + label: 'Template Vue', + helper: 'The template vue component to display', + value: 'Vue component editor
', + language: 'html', + enablePopup: true, + openPopupLabel: 'Open in popup', + popupTitle: 'Edit template', + cancelPopupLabel: 'Cancel', + savePopupLabel: 'Save', + }, + }, + { + type: EditorFieldInspector, + field: 'handlerVue', + config: { + label: 'Handler Vue', + helper: 'The code vue component to display', + value: 'return {}', + language: 'javascript', + enablePopup: true, + openPopupLabel: 'Open in popup', + popupTitle: 'Edit script', + cancelPopupLabel: 'Cancel', + savePopupLabel: 'Save', + }, + }, + ], + }, +}; + export default [ { - editorComponent: FormHtmlEditor, + editorComponent: 'FormHtmlEditor', editorBinding: 'FormHtmlEditor', - rendererComponent: FormHtmlEditor, + rendererComponent: 'FormHtmlEditor', rendererBinding: 'FormHtmlEditor', control: { popoverContent: "Use a Rich Text Editor to add HTML-formatted", @@ -1292,5 +1360,6 @@ export default [ }, inspector: [], } - } + }, + VueComponentEditorConfig ];