{"id":18509956,"url":"https://github.com/hw-a/meteor-ace-editor","last_synced_at":"2026-05-13T11:04:44.890Z","repository":{"id":25281078,"uuid":"28706769","full_name":"archywillhe/meteor-ace-editor","owner":"archywillhe","description":"Asynchronously loading Ace Editor to a Meteor app. Ace version in used: 1.2.1","archived":false,"fork":false,"pushed_at":"2021-06-15T06:10:17.000Z","size":12,"stargazers_count":11,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T12:51:55.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/archywillhe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-02T07:29:20.000Z","updated_at":"2023-09-01T02:39:42.000Z","dependencies_parsed_at":"2022-08-24T00:20:23.280Z","dependency_job_id":null,"html_url":"https://github.com/archywillhe/meteor-ace-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/archywillhe/meteor-ace-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archywillhe%2Fmeteor-ace-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archywillhe%2Fmeteor-ace-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archywillhe%2Fmeteor-ace-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archywillhe%2Fmeteor-ace-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archywillhe","download_url":"https://codeload.github.com/archywillhe/meteor-ace-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archywillhe%2Fmeteor-ace-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27784067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T15:19:45.356Z","updated_at":"2026-05-13T11:04:38.948Z","avatar_url":"https://github.com/archywillhe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Meteor Ace Editor ##\n\nA simple package that asynchronously loads \u003ca href=\"http://ace.c9.io/\"\u003eAce editor\u003c/a\u003e to a Meteor app only when it is needed.\n\n\u003e Note: this package is just a \"wrapper\" around the actual ace editor, asynchronously loading the ace script with XMLHttpRequest when `AceEditor.instance` is called for the first time.\n\n## QuickStart ##\nAdd it to your Meteor project\n```bash\nmeteor add arch:ace-editor\n```\n\nLet's say you have a `\u003cpre id='archy'\u003e\u003c/pre\u003e`, and now you want to embed Ace and turn the DOM element into an Ace editor, this is all you need to do:\n```javascript\nvar ace = AceEditor.instance(\"archy\",{\n    theme:\"dawn\",\n    mode:\"html\"\n});\n```\n\u003e caling `AceEditor.instance(\"dom\")` is basically the same as calling \u003ca href=\"http://ace.c9.io/#nav=howto\"\u003e `ace.edit('dom')` in the Ace API\u003c/a\u003e. The only difference is that `AceEditor.instance(\"dom\")` would load the script the first time you call it.\n\n\n## More on working with Ace Editor in Meteor ##\nUsing a callback:\n```javascript\nAceEditor.instance(\"archy\",null,function(editor){\n   editor.insert(\"Live long and prosper.\");\n   editor.session.getLength();\n});\n```\n\n\nAssigning `AceEditor.instance(\"archy\")` to a variable with Tracker.autorun:\n```javascript\nTracker.autorun(function (e) {\n  editor = AceEditor.instance(\"archy\");\n  if(editor.loaded!==undefined){\n  e.stop();\n  editor.insert(\"Live long and prosper.\");\n  }\n});\n```\n\n`.autorun` is necessary only when the Ace script has not been loaded.\n\nTo learn more about Ace Editor, you can read \u003ca href=\"http://ace.c9.io/#nav=howto\"\u003ethe how-to guide\u003c/a\u003e on their website.\n\n## on using UndoManager, VirtualRenderer, etc ##\n\nSince Ace is still accessible at `window.ace`, to create an instance of the UndoManager, `new window.ace.UndoManager` would do. The same goes to other things described in the api.\n\n## License ##\n\n\"THE BEER-WARE LICENSE\" (Revision 42):\n\n\nAs long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhw-a%2Fmeteor-ace-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhw-a%2Fmeteor-ace-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhw-a%2Fmeteor-ace-editor/lists"}