Open sergomet opened 8 years ago
+1 facing the same issue
Use ngModel for it.
$scope.aceLoaded = function($editor) {
$scope.$editor = $editor;
};
$scope.onOpen = function(code, fileExtension) {
let mode = resolveExtension(fileExtension);
$scope.html = code;
$scope.$editor.session.setMode('ace/mode/' + mode);
}
editor:
tried:
and:
Expect this everything works nice, thanks!