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
Additionally, as referenced in Issue #127, the correct variable name passed to asset() should be froala_customJS.
Problem
This implementation does not allow for an array of scripts to be passed and iterated through, which limits flexibility for users who need to load multiple scripts.
Suggested Solution
Update the Twig template to handle both a single string and an array of scripts for froala_customJS. The logic should maintain backward compatibility, loading a single script if a string is provided or iterating through an array if multiple scripts are specified. Below is the proposed code update:
Description
The README suggests that multiple custom plugin and button scripts can be loaded using the customJS option:
However, the
src/Resources/views/Form/froala_widget.html.twig
file currently only accommodates a single string for the froala_customJS variable:Additionally, as referenced in Issue #127, the correct variable name passed to asset() should be froala_customJS.
Problem
This implementation does not allow for an array of scripts to be passed and iterated through, which limits flexibility for users who need to load multiple scripts.
Suggested Solution
Update the Twig template to handle both a single string and an array of scripts for froala_customJS. The logic should maintain backward compatibility, loading a single script if a string is provided or iterating through an array if multiple scripts are specified. Below is the proposed code update:
Benefits
The text was updated successfully, but these errors were encountered: