validating field in fckeditor using javascript

var EditorInstance = FCKeditorAPI.GetInstance(‘message’) ; //message is name of field to be validate if(EditorInstance.EditorDocument.body.innerText.length<=0) { alert(“This firld is mandatory”); EditorInstance.EditorDocument.body.focus(); return false; }

Follow

Get every new post delivered to your Inbox.