XF 2.0 Froala .js files

AndyB

Well-known member
Why are there two froala files?

1508343028136.webp

I assume the froala_editor.min.js is only provided as a reference and not being used, is this correct?
 
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.
 
Top Bottom