mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
throw and post err on bad pad data
This commit is contained in:
parent
945d5b98e8
commit
1e6fc26780
1 changed files with 8 additions and 1 deletions
|
@ -185,7 +185,14 @@ function Ace2Inner(){
|
||||||
{
|
{
|
||||||
setDocumentAttributedText: function(atext)
|
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)
|
applyChangesetToDocument: function(changeset, preferInsertionAfterCaret)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue