diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 25cb1f8cc..830c2b508 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -185,7 +185,14 @@ function Ace2Inner(){ { setDocumentAttributedText: function(atext) { - setDocAText(atext); + try{ + setDocAText(atext); + }catch(err){ + var err = { + errorInfo: "Text is broken so wont load on the client" + } + $.post('/jserror', err); + } }, applyChangesetToDocument: function(changeset, preferInsertionAfterCaret) {