mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00
Jump to 0.3.1
This commit is contained in:
parent
f7f8c901f4
commit
10c9811fc5
49 changed files with 2336 additions and 448 deletions
|
@ -57,7 +57,7 @@
|
|||
|
||||
cm.operation(function() {
|
||||
for (var i = ranges.length - 1; i >= 0; i--)
|
||||
cm.replaceRange(inserts[i], ranges[i].from(), ranges[i].to(), "+insert");
|
||||
cm.replaceRange(inserts[i], ranges[i].from(), ranges[i].to(), "+input");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
4
public/vendor/codemirror/codemirror.min.js
vendored
4
public/vendor/codemirror/codemirror.min.js
vendored
File diff suppressed because one or more lines are too long
6
public/vendor/codemirror/lib/codemirror.js
vendored
6
public/vendor/codemirror/lib/codemirror.js
vendored
|
@ -1318,11 +1318,13 @@
|
|||
minimal = hasCopyEvent &&
|
||||
(range.to().line - range.from().line > 100 || (selected = cm.getSelection()).length > 1000);
|
||||
var content = minimal ? "-" : selected || cm.getSelection();
|
||||
this.textarea.value = content;
|
||||
if(!this.composing)
|
||||
this.textarea.value = content;
|
||||
if (cm.state.focused) selectInput(this.textarea);
|
||||
if (ie && ie_version >= 9) this.hasSelection = content;
|
||||
} else if (!typing) {
|
||||
this.prevInput = this.textarea.value = "";
|
||||
if(!this.composing)
|
||||
this.prevInput = this.textarea.value = "";
|
||||
if (ie && ie_version >= 9) this.hasSelection = null;
|
||||
}
|
||||
this.inaccurateSelection = minimal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue