dmstr / yii2-json-editor

Yii2 wrapper for "json-editor/json-editor" (is a fork of "jdorn/json-editor").
BSD 2-Clause "Simplified" License
8 stars 9 forks source link

JsonEditorWidget: add registerPluginAsset option #26

Closed handcode closed 2 years ago

handcode commented 2 years ago

This PR adds a new option JsonEditorWidget::registerPluginAsset

If set the JsonEditorPluginsAsset will be registered while init.

Until now, you always have to register the plugin asset manually "elsewhere" when plugins are needed.

With code generators like giiant this is error-prone and not very practical.