I need to validate the text in the editor by javascript.
I’m doing this with the following code:
When the editor is empty the validation puts a <br /> tag
I would like to know if there is a way to avoid the editor put that tag.
Note: On the config I have changed the EnterMode to 'br '.
I’m doing this with the following code:
if(FCKeditorAPI.GetInstance('editor').GetData() == '') { alert('Invalid Text'); }
When the editor is empty the validation puts a <br /> tag
I would like to know if there is a way to avoid the editor put that tag.
Note: On the config I have changed the EnterMode to 'br '.