fixed javascript when CKEditor is not included and you click the preview button