SmartMarkUp with CakePHP

SmartMarkUp is a lightweight textedtor in where the compressed version weights only 10kb (without css and images.
How to use in CakePHP
Adding it to CakePHP is pretty easy: Just drop it in your “js” folder, and add a symbolic link of it in your “css” folder so you can add the css as well.
// Add the stylesheets
css(‘smarkup/skins/style.css’) ?>
css(‘smarkup/skins/default/style.css’) ?>
// Add the javascript
link(‘smarkup/smarkup.js’); ?>
link(‘smarkup/conf/html/conf.js’); ?>
Then you activate it with:
..
SMarkUp.bind('PostBody', 'html', 400);
..
Follow the guide on their this page.