UNPKG

codemirror-ot

Version:

Operational Transformation adapter for CodeMirror 6.

69 lines 2.5 kB
{ "vizFilesBefore": { "92259289": { "text": "A bare minimum [HTML](https://en.wikipedia.org/wiki/HTML)\npage demonstrating use of\n[CSS](https://en.wikipedia.org/wiki/CSS) and\n[JavaScript](https://en.wikipedia.org/wiki/JavaScript).\n\nSee also\n[React Starter](https://vizhub.com/curran/c3b14112dae34ef395999cef5783324f).\n", "name": "README.md" }, "08927615": { "text": "<!DOCTYPE html>\n<html>\n <head>\n <title>HTML Starter</title>\n <style>\n .message {\n font-size: 12em;\n text-align: center;\n }\n </style>\n </head>\n <body>\n <div class=\"message\">Hello HTML!</div>\n <script>\n console.log('hello world');\n </script>\n </body>\n</html>\n", "name": "index.html" } }, "vizFilesAfter": { "52161762": { "name": "styles.css", "text": ".message {\n font-size: 12em;\n text-align: center;\n}\n" }, "92259289": { "text": "A bare minimum [HTML](https://en.wikipedia.org/wiki/HTML)\npage demonstrating use of\n[CSS](https://en.wikipedia.org/wiki/CSS) and\n[JavaScript](https://en.wikipedia.org/wiki/JavaScript).\n\nSee also\n[React Starter](https://vizhub.com/curran/c3b14112dae34ef395999cef5783324f).\n", "name": "README.md" }, "08927615": { "text": "<!DOCTYPE html>\n<html>\n <head>\n <title>HTML Starter</title>\n <link rel=\"stylesheet\" href=\"styles.css\" />\n </head>\n <body>\n <div class=\"message\">Hello HTML!</div>\n <script src=\"script.js\"></script>\n </body>\n</html>\n", "name": "index.html" }, "ee311330": { "name": "script.js", "text": "console.log('hello world');\n" } }, "filesOp": [ "files", [ "08927615", "text", { "es": [ 69, "link rel=\"stylesheet\" href=\"styles.css\" /", { "d": "style>\n .message {\n font-size: 12em;\n text-align: center;\n }\n </style" }, 75, " src=\"script.js\">", { "d": ">\n console.log('hello world');\n " } ] } ], [ "52161762", { "i": { "name": "styles.css", "text": ".message {\n font-size: 12em;\n text-align: center;\n}\n" } } ], [ "ee311330", { "i": { "name": "script.js", "text": "console.log('hello world');\n" } } ] ] }