mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
When using setText(), replace the entire existing text of the pad,
rather than replacing all except the last letter.
This commit is contained in:
parent
a5872f536b
commit
5e64c292a4
2 changed files with 5 additions and 5 deletions
|
@ -290,7 +290,7 @@ Pad.prototype.setText = function setText(newText) {
|
|||
var oldText = this.text();
|
||||
|
||||
//create the changeset
|
||||
var changeset = Changeset.makeSplice(oldText, 0, oldText.length-1, newText);
|
||||
var changeset = Changeset.makeSplice(oldText, 0, oldText.length, newText);
|
||||
|
||||
//append the changeset
|
||||
this.appendRevision(changeset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue