We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d82b606 + db724fa commit 8e5405dCopy full SHA for 8e5405d
angular-redactor.js
@@ -41,10 +41,11 @@
41
angular.extend(options, redactorOptions, additionalOptions);
42
43
// prevent collision with the constant values on ChangeCallback
44
- if(!angular.isUndefined(redactorOptions.changeCallback)) {
45
- options.changeCallback = function() {
46
- updateModel.call(this);
47
- redactorOptions.changeCallback.call(this);
+ var changeCallback = additionalOptions.changeCallback || redactorOptions.changeCallback;
+ if (changeCallback) {
+ options.changeCallback = function(value) {
+ updateModel.call(this, value);
48
+ changeCallback.call(this, value);
49
}
50
51
0 commit comments