Open jasonreich opened 9 years ago
+1 this is really needed, has uiCodemirror development being abandoned?
Workaround here:
$scope.editorOptions = {
onLoad: function(editor) {
editor.on('blur', function() {
$scope.myModel = editor.getValue();
})
}
}
Adjusted slightly to respect "updateOn" ngModelOption attributes. Previously, if one specified
{updateOn: 'blur'}
, the model would never update.The specific changes are;
{updateOn: 'blur'}
case.