First you need to put everything from loading the CKEDITOR assembly into a shared folder. CKEDITOR comes with all things and refers to everything based on relative directories.
Your shared folder should have a directory named ckeditor, which should contain the following files and folders:
adapters lang plugins skins ckeditor.js config.js contents.css styles.js
In your main file, CKEDITOR links like this:
<head> <script type="text/javascript" src="/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="/ckeditor/adapters/jquery.js"></script> </head>
In your template:
<template name="yourTemplate"> <textarea id="content" name="content"></textarea> </template>
Finally, in the displayed function of your template:
Template.yourTemplate.rendered = function() { $('#content').ckeditor(); };
You will usually say this.$('#content').ckeditor() , but this does not work because CKEDITOR is in your shared folder. As a result, you will need a global reference to the #content element.
source share