Closed xitara closed 5 years ago
@xitara Not sure if you worked it out but for anyone else:
Custom elements need to be added inside a "Controls" property as below:
` var formeo = new FormeoEditor({
editorContainer: '#formeo-editor',
svgSprite: 'https://draggable.github.io/formeo/assets/img/formeo-sprite.svg',
dataType: 'json',
debug: true,
actions: {
debug: true,
},
controls: {
sortable: true,
elements: [
{
tag: 'input',
config: {
label: 'Password',
disabledAttrs: ['type']
},
meta: {
group: 'existing',
id: 'password',
icon: '***',
},
attrs: {
type: 'password'
},
},
],
},
`
i'll try it, thx
late reply, but it works
First of all, Formeo now becomes a top WYSIWYG editor 👍
Here my acutal problem: I want to add a custom- element and tested severial examples but no additional element wil lbe displayed. heres my code:
` const formData = <?= $this->vars['formModel']->attributes['form']; ?>;
all of this is working well, except the additional element. is this a bug or is it my fail?
Edit: i use the release 1.0.12