Skip to content

Commit ceb111b

Browse files
committed
on-change event callback receives new editor value
1 parent e41a027 commit ceb111b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-json-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ angular.module('angular-json-editor', []).constant('JsonEditorConfig', {
8484
editor.on('change', function () {
8585
// Fire the onChange callback
8686
if (typeof scope.onChange === 'function') {
87-
scope.onChange();
87+
scope.onChange(editor.getValue());
8888
}
8989
scope.$apply(function () {
9090
scope.isValid = (editor.validate().length === 0);

0 commit comments

Comments
 (0)