• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Froala .js files

AndyB

Well-known member
#1
Why are there two froala files?

1508343028136.png

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
#2
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.