A few days ago the blog entry CKEditor 3.0 is here! caught my attraction. I know Pebble is using FCKEditor
, so I read the whole news and wanted to feel the amazing difference...
To use CKEditor with this bundled version of Pebble I repackaged the editor as web.ckeditor
and added it to the Equinox platform. With a little help from spring-osgi
and a single line in the MANIFEST.MF
the editor is deployed as /ckeditor
Web-ContextPath: /ckeditor
In the pebble.web
bundle i replaced the FCKEditor
related lines in the commentForm.jsp
with:
<script type="text/javascript">
CKEDITOR.replace( 'commentBody',
{
toolbar : 'Basic'
});
</script>
And in the main page.tag
as follows:
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
That's almost everything to do. Deleting one character 'F' in a Maven configuration file and the truly amazing result:
Works like charm! Congratulations!