Merge pull request #773 from jhollinger/master

Bugfix to setHTML
pull/775/merge
John McLear 2012-06-12 07:47:03 -07:00
commit 3811a844a9
1 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@ var log4js = require('log4js');
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var contentcollector = require("ep_etherpad-lite/static/js/contentcollector");
var map = require("ep_etherpad-lite/static/js/ace2_common").map;
function setPadHTML(pad, html, callback)
{
@ -60,7 +59,7 @@ function setPadHTML(pad, html, callback)
var attribsIter = Changeset.opIterator(attribs);
var textIndex = 0;
var newTextStart = 0;
var newTextEnd = newText.length - 1;
var newTextEnd = newText.length;
while (attribsIter.hasNext())
{
var op = attribsIter.next();