mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Update Codemirror version to the latest which allows us to set screen reader labels on Codemirror editor.
refs #5197
This commit is contained in:
committed by
Akshay Joshi
parent
92d9c41da7
commit
eb971a0320
@@ -1810,12 +1810,15 @@ define([
|
||||
// Use the Backform Control's render function
|
||||
Backform.Control.prototype.render.apply(this, arguments);
|
||||
|
||||
var field = _.defaults(this.field.toJSON(), this.defaults);
|
||||
|
||||
this.sqlCtrl = CodeMirror.fromTextArea(
|
||||
(this.$el.find('textarea')[0]), {
|
||||
lineNumbers: true,
|
||||
mode: 'text/x-pgsql',
|
||||
readOnly: true,
|
||||
extraKeys: pgAdmin.Browser.editor_shortcut_keys,
|
||||
screenReaderLabel: field.label,
|
||||
});
|
||||
|
||||
this.reflectPreferences();
|
||||
@@ -2574,6 +2577,7 @@ define([
|
||||
lineNumbers: true,
|
||||
mode: 'text/x-pgsql',
|
||||
extraKeys: pgAdmin.Browser.editor_shortcut_keys,
|
||||
screenReaderLabel: data.label,
|
||||
});
|
||||
|
||||
self.reflectPreferences();
|
||||
|
||||
Reference in New Issue
Block a user