Fixing CKEditor dialog initialization