Modified output function to load CKEditor