code-editor: disable depreacation warning

This commit is contained in:
Alexander Zobnin 2017-08-07 19:43:58 +03:00
parent e4dabb657c
commit ecb66e7678

View File

@ -18,6 +18,7 @@ function link(scope, elem, attrs) {
codeEditor.setTheme("ace/theme/solarized_dark"); codeEditor.setTheme("ace/theme/solarized_dark");
codeEditor.setHighlightActiveLine(false); codeEditor.setHighlightActiveLine(false);
codeEditor.setShowPrintMargin(false); codeEditor.setShowPrintMargin(false);
codeEditor.$blockScrolling = Infinity;
codeEditor.setValue(scope.content); codeEditor.setValue(scope.content);
codeEditor.clearSelection(); codeEditor.clearSelection();