Opened 11 years ago

Last modified 11 years ago

#11692 closed defect

dijit.Editor - Extend To Allow For Disabling of onChange Events (like dijits) — at Initial Version

Reported by: OakBehringer Owned by: anonymous
Priority: high Milestone: tbd
Component: Editor Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description

It would be nice to be able to disable the onChange events in dijit.Editor like one can with dijit.form elements. All it would take is to add an _onChangeActive flag to the dijit._editor.RichText? class and adding an IF statement to the _onBlur function. The following dojo.extend adds the _onChangeActive flag and the IF statement to the _onBlur function:

dojo.extend(dijit._editor.RichText?, {

_onChangeActive: true, _onBlur: function(e) {

this.inherited('_onBlur', arguments); var _c=this.getValue(true); if(_c!=this.savedContent){

if (this._onChangeActive)

this.onChange(_c);

this.savedContent=_c;

}

}

});

Change History (0)

Note: See TracTickets for help on using tickets.