Loris
Loris copied to clipboard
[help_editor] fix preview button
Brief summary of changes
This PR updates the position of the preview dialogue when clicking on the preview button of the help editor. It also correctly sources the sweetalert library from htdocs/vendor because help_editor_helper.js is vanilla javascript and isn't compiled with webpack (needed for using import).
Testing instructions (if applicable)
- Checkout PR
- Visit the help_editor module
- click on bmi in the table (example rasinbread)
- Click the preview button.
Link(s) to related issue(s)
- Resolves #6968
Here is the screenshot of the result. The preview button now works @ridz1208

Works too
@shonibare @regisoc if this is approved, can you approve the PR? Thanks!
@driusan PR was approved by Regis. In your code for final review.