problem was that ckeditor path had to be defined in a separate js file