XF 2.0 Froala .js files


Well-known member
Why are there two froala files?


I assume the froala_editor.min.js is only provided as a reference and not being used, is this correct?

Chris D

XenForo developer
Staff member
froala_editor.min.js is the minified version of the Froala editor without any plugins whatsoever. froala-compiled.min.js is the editor plus all of the plugin files that we use in XF.

We include the minified editor plus all Froala plugins (not just the ones we use - in the vendor/froala/plugins directory) so that people can compile their own version of Froala with whichever plugins they need within their own add-ons for specific use cases.

Semi related, but we ship and use xf/editor-compiled.js which includes the Froala compiled file plus our custom editor code.