team-formalist / formalist-rb

Flexible form builder
MIT License
22 stars 4 forks source link

Embedded form input processor #59

Closed timriley closed 7 years ago

timriley commented 7 years ago

Add an "input processor" to embedded form registrations. This allows the form's data to be processed before it is incorporated into the form AST that we include into the rich text AST before showing the content in the rich text editor.

Applications can use this feature to provide extra, necessary, application-level data associated to the form data. For example, in the case of an "image" embedded form, the application would need to provide a "thumbnail_url" for the image form to display the thumbnail for the image.

Resolves #58