Open thinkrapido opened 9 years ago
Hi, looks that part that prevent collisions with change callback also should be updated. Code example:
angular.merge(options, redactorOptions, additionalOptions);
// prevent collision with the constant values on ChangeCallback
var changeCallback = (additionalOptions.callbacks && additionalOptions.callbacks.change) ||
(redactorOptions.callbacks && redactorOptions.callbacks.change);
if (changeCallback) {
options.callbacks.change = function(value) {
updateModel.call(this, value);
changeCallback.call(this, value);
};
}