mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add editor options for plain text mode and to disable block folding to
workaround rendering speed issues in CodeMirror with very large scripts. Fixes #4631. Re-arrange editor options in the Preferences dialogue to tidy things up.
This commit is contained in:
committed by
Dave Page
parent
5e54f20578
commit
1c2ba72f02
@@ -356,14 +356,7 @@ define('tools.querytool', [
|
||||
foldOptions: {
|
||||
widget: '\u2026',
|
||||
},
|
||||
foldGutter: {
|
||||
rangeFinder: CodeMirror.fold.combine(
|
||||
CodeMirror.pgadminBeginRangeFinder,
|
||||
CodeMirror.pgadminIfRangeFinder,
|
||||
CodeMirror.pgadminLoopRangeFinder,
|
||||
CodeMirror.pgadminCaseRangeFinder
|
||||
),
|
||||
},
|
||||
foldGutter: true,
|
||||
gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],
|
||||
extraKeys: pgBrowser.editor_shortcut_keys,
|
||||
scrollbarStyle: 'simple',
|
||||
|
||||
Reference in New Issue
Block a user