/***************************************************

	fValidate
	Copyright (c) 2000-2003
	by Peter Bailey
	www.peterbailey.net/fValidate/

	fValidate.wysiwyg.js
	Copyright (c) 2000-2005
	by DEFA Gruppe

	Included Validators
	-------------------
	blank_fckeditor

	This file is only part of a larger validation
	library	and will not function autonomously.

	Created at a tab-spacing of four (4)

****************************************************/

fValidate.prototype.blank_fckeditor = function()
{
    if(typeof window.FCKeditorAPI == 'undefined') {
        this.blank();
    } else {
        // fValidate не отображает ошибки для полей типа 'hidden'
        this.elem.force_hidden = true;

        var oEditor = window.FCKeditorAPI.GetInstance(this.elem.name);
        re = /(&nbsp;)|(<br \/>)|(<p>)|(<\/p>)|(<div>)|(<\/div>)|(<br>)|(\s*)/gi;
        if( !oEditor.GetHTML().replace(re,'').length ) {
            this.throwError( [this.elem.fName] );
        }
    }
}
//	EOF
