forked from 0x2620/oxjs
rather use ''.slice than ''.substr
This commit is contained in:
parent
f990f3b857
commit
1608664bb6
20 changed files with 69 additions and 71 deletions
|
|
@ -302,8 +302,9 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
insert({
|
||||
end: element.selectionEnd,
|
||||
id: id,
|
||||
selection: element.value
|
||||
.substr(element.selectionStart, element.selectionEnd),
|
||||
selection: element.value.slice(
|
||||
element.selectionStart, element.selectionEnd
|
||||
),
|
||||
start: element.selectionStart,
|
||||
value: element.value
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue