rem: console.log('OnAfterSetHTML'); 
context: function dbforms2_field_text_wysiwyg(DOMNode) {        var lastValue = null;    var editorInstance = null;    var valueSet = false;    this.init = function(DOMNode) {		this.initField(DOMNode);        this.lastValue = this.defaultValue;	        dbforms2_fckEditors[this.id] = new Array();        dbforms2_fckEditors[this.id]['context'] = this;        dbforms2_fckEditors[this.id]['method'] = this.eFCK_OnComplete;                var oFCKeditor = new FCKeditor(this.id);        oFCKeditor.BasePath	= fckBasePath;                oFCKeditor.Config['CustomConfigurationsPath'] = bx_webroot + 'webinc/plugins/dbforms2/fckconfig.js';        oFCKeditor.ToolbarSet = 'BxCMS';        oFCKeditor.ReplaceTextarea();            }        this.eFCK_OnComplete = function(einstance) {        // register the 'OnAfterSetHTML' event        var wev = new bx_helpers_contextfixer(this.eFCK_OnAfterSetHTML, this);        einstance.Events.AttachEvent('OnAfterSetHTML', wev.execute);        this.editorInstance = einstance;    }        this.eFCK_OnAfterSetHTML = function(einstance) {        console.log('OnAfterSetHTML');        if(this.valueSet) {            this.resetChanged();            this.valueSet = false;        }    }		this.setValue = function(value) {		// Get the editor instance that we want to interact with.		if (typeof FCKeditorAPI  != "undefined") {			var oEditor = FCKeditorAPI.GetInstance(this.id) ;            // Set the editor contents (replace the actual one).			if (oEditor.SetHTML) {                if(value == null) {                    value = '';                }				oEditor.SetHTML(value);                this.valueSet = true;			} else {				this.DOMNode.value = value;			}            		} else {			this.DOMNode.value = value;		}        this.lastValue = value;	}		this.getValue = function(value) {		// Get the editor instance that we want to interact with.		var oEditor = FCKeditorAPI.GetInstance(this.id) ;		return oEditor.GetXHTML(true);	}        this.resetChanged = function() {        if(this.editorInstance != null) {            this.lastValue = this.editorInstance.GetXHTML(true);        }    }        this.hasChanged = function() {		if (typeof FCKeditorAPI  != "undefined") {            var oEditor = FCKeditorAPI.GetInstance(this.id);            var value = oEditor.GetXHTML(true);            if(value != this.lastValue) {                return true;            }        }        return false;    }		}
meta: 6621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6621/733e6bde2c927456b533acbda9ebd9af243c6819/fields.js/clean/webinc/plugins/dbforms2/fields.js