hide cursor in ace

This commit is contained in:
tdurieux
2021-04-06 18:17:47 +02:00
parent 19bd0702df
commit d87bd8276f
3 changed files with 14 additions and 4 deletions

View File

@@ -377,11 +377,13 @@ angular
fontSize: 15,
keyBinding: "vscode",
fullLineSelection: true,
highlightActiveLine: true,
highlightActiveLine: false,
highlightGutterLine: false,
cursor: "hide",
showInvisibles: false,
showIndentGuides: true,
showPrintMargin: false,
highlightSelectedWord: true,
highlightSelectedWord: false,
enableBehaviours: true,
fadeFoldWidgets: false,
mode: getMode(extension),
@@ -395,6 +397,10 @@ angular
);
_editor.setOption("displayIndentGuides", true);
_editor.setHighlightActiveLine($scope.aceOption.highlightActiveLine);
if ($scope.aceOption.cursor == "hide") {
_editor.renderer.$cursorLayer.element.style.display = "none";
}
_editor.setHighlightGutterLine($scope.aceOption.highlightGutterLine);
_editor.setShowInvisibles($scope.aceOption.showInvisibles);
_editor.setDisplayIndentGuides($scope.aceOption.showIndentGuides);