You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Embed Tool supports some services by default (see above). You can specify services you would like to use:
103
+
This system supports some form fields by default (see above). If you want to specify fields you would like to use you can do that in `form-factory/core/services/form-builder.service.ts`:
96
104
97
-
```javascript
98
-
var editor =EditorJS({
99
-
...
100
-
101
-
tools: {
102
-
...
103
-
embed: {
104
-
class: Embed,
105
-
config: {
106
-
services: {
107
-
youtube:true,
108
-
coub:true
109
-
}
110
-
}
105
+
```typescript
106
+
privateformFields: FieldTypeModel[] = [
107
+
{
108
+
type: 'input',
109
+
component: InputComponent,
111
110
},
112
-
},
113
-
114
-
...
115
-
});
111
+
{
112
+
type: 'textarea',
113
+
component: TextareaComponent,
114
+
},
115
+
...
116
+
];
116
117
```
117
118
118
-
> Note that if you pass services you want to use like in the example above, others will not be enabled.
119
+
> Note that if you want you can pass any form field you created like in example above.
120
+
121
+
> `type` - Selector that you use for `controlType` option in JSON configuration.
0 commit comments