Here's the easiest way to add custom javascript and/or css to the Rich Text Editor in Sitecore 8:
https://gist.github.com/Wesley-Lomax/4aaaed651dbd8491273c
https://gist.github.com/Wesley-Lomax/4aaaed651dbd8491273c
A mishmash of code samples, thoughts, and random musings in regards to programming of all sorts.