[closes gh-127] Updated to the latest CodeMirror and disabled autocapitalize.
This commit is contained in:
Родитель
7ab56995fc
Коммит
4a5ce419e3
|
@ -25,6 +25,13 @@ Vue.component('app-mirrorsharp', {
|
|||
if (this.serverOptions)
|
||||
instance.sendServerOptions(this.serverOptions);
|
||||
|
||||
const contentEditable = instance
|
||||
.getCodeMirror()
|
||||
.getWrapperElement()
|
||||
.querySelector('[contentEditable=true]');
|
||||
if (contentEditable)
|
||||
contentEditable.setAttribute('autocomplete', 'off');
|
||||
|
||||
this.$watch('initialText', v => instance.setText(v));
|
||||
this.$watch('serverOptions', o => instance.sendServerOptions(o), { deep: true });
|
||||
this.$watch('serviceUrl', u => {
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
"svg2png": "3.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"codemirror": "^5.19.0",
|
||||
"codemirror": "^5.26.0",
|
||||
"dateformat": "^1.0.12",
|
||||
"lz-string": "^1.4.4",
|
||||
"mirrorsharp": "^0.9.0-pre-20170618",
|
||||
|
|
Загрузка…
Ссылка в новой задаче