javascript - CodeMirror issue: Error parsing forward channel Error: Invalid maps at transformData -


trying simple version of codemirror , running when go document on 2 diff browsers (or 1 in incog), error in console:

error parsing forward channel error: invalid maps @ transformdata

these 2 diff users logged in , accessing same doc. worked fine when no 1 logged in , 2 diff browsers accessing doc. set settings.json file instructed in root , running meteor 1.2.1 that's version still works sharejs. i'm running with: meteor --release 1.2.1 --settings settings.json.

{  "sharejs": {  "options": {       "accounts_auth": {         "authorize": {             "collection": "documents",             "token_validations": {               "or": {                 "invitedusers": "is_in_array",                 "userid": "is_equal"               }             },             "apply_on": [               "read",               "update",               "create",               "delete"             ]         },         "authenticate": {             "collection": "users",             "token_validations": {               "_id": "is_equal"             }         }       }     }   } } 

in html when docs render both have correct docid (ie same docid)... don't see text mirroring.

using simple codemirror version ({{> sharejscm docid=docid id="editor"}})

any ideas?

check out example in https://www.coursera.org/learn/web-application-development/lecture/qaxtr/textcircle code is: textcircle.html:

<head>     <title>text circle</title> </head> <body>     <h1>welcome text circle - collaboration tool.</h1>     {{> editor}} </body> <template name="editor">    {{> sharejscm docid=docid id="editor"}}  </template> 

---- textcircle.js:

this.documents = new mongo.collection("documents");  if (meteor.isclient) {   template.editor.helpers( {     docid: function () {       var doc = documents.findone();       if (doc) {         return doc._id;       } else {         return null;       }     }   }) }  if (meteor.isserver){     meteor.startup(function(){         // code run on server @ startup     if (! documents.findone()) { // no docs yet.       documents.insert({title: "my new documents."})     }     }) } 

i not yet know id="editor" does. changed id="editor" here, , deleted it, no perceived difference in results between 2 windows.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -