Get started in 3 minutes
Here’s a simple guide to quickstart with CFE. It covers basic input replacement in 3 easy steps.
-
Download CFE
Download and unpack
Pick the right package according to the framework you want to use on the download page.
-
Include the CSS and Javascript files
Include required files
Include the css in the <head>-section:
To support the fabulous IE7 insert:
Add the javascript files right before the (closing) </body>-tag, so your visitor will see the layout fast. I recommended to use the library file provided in the CFE download package (cfe.js: uncompressed for debugging – cfe-minified/cfe.js: yui compressed for production):
Feel free to create your own compressed version of cfe with the modules you like or add the javascript files uncompressed one by one to your site. If you do so, please mind the dependencies.
-
Setup CFE
Configure and run CFE
To initialize cfe and let the magic happen, you might just use this simple code:
window.addEvent('domready', function(){ new cfe.Replace().engage(); });For more options, refer to the cfe.autostart.sample.js and/or read the docs.
Tip: If you want to further decrease the bandwith usage of cfe,GZip the compressed file before serving