Installation
RJSF comes in two parts, the Drupal module and an accompanying npm library, both must be installed for the module to work.
- Install the RJSF Drupal module
- Run
composer require drupal/rjsf
- Run
- Install the Drupal RJSF NPM library @drupal-rjsf/editor
- The easiest way to install the npm library that provides the editor and widgets is to use asset-packagist. The add assets packagist to your project see here
- After adding asset packagist run
composer require npm-asset/drupal-rjsf--editor
- After adding asset packagist run
- Alternatively the package can be downloaded from NPM and manually placed in the libraries folder. The expected path for the
rjsf_editor.min.js
file is{web root}/libraries/drupal-rjsf--editor/dist/rjsf_editor.min.js
- The easiest way to install the npm library that provides the editor and widgets is to use asset-packagist. The add assets packagist to your project see here
- Enable the RJSF module
- Run
drush en rjsf
or navigate to your sites extend page and enable RJSF
- Run