有没有办法在CKeditor中运行javascript

I've been working on a CMS using php and just switched to CKEditor. I have an image carousel/gallery in a frontpage. Seeing the capability of CKEditor, I have decided to save its "html" in a database so that my client can edit it to change the images for the carousel or changing it to a new carousel type completely.

I've come to realize that javascript isn't running inside the CKEditor so I can't have a proper display of the carousel. It is looking rather messy due to the fact that javascript not running.

Is there any way around it? What are others options i have to let my client customize his carousel?

Thanks for reading this, and for helping out.