Some custom functions for CKEditor