{"id":13672040,"url":"https://github.com/lipten/Tiny-editor","last_synced_at":"2025-04-27T18:32:05.525Z","repository":{"id":92693719,"uuid":"54270193","full_name":"lipten/Tiny-editor","owner":"lipten","description":"基于Ace可实时运行的代码编辑器，相当于开源的jsFiddle，可以打造属于自己的代码编辑器！","archived":false,"fork":false,"pushed_at":"2021-04-13T10:37:55.000Z","size":10,"stargazers_count":111,"open_issues_count":0,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T07:37:08.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://codeasily.net/editor","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/lipten.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-19T14:31:29.000Z","updated_at":"2025-03-01T00:38:09.000Z","dependencies_parsed_at":"2023-04-27T07:05:50.384Z","dependency_job_id":null,"html_url":"https://github.com/lipten/Tiny-editor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipten%2FTiny-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipten%2FTiny-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipten%2FTiny-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipten%2FTiny-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lipten","download_url":"https://codeload.github.com/lipten/Tiny-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187402,"owners_count":21549635,"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","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-08-02T09:01:25.004Z","updated_at":"2025-04-27T18:32:03.781Z","avatar_url":"https://github.com/lipten.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"demo案例：\nhttp://codeasily.net/editor\n\n### -update v0.1-\n1.测试版，目前有个别功能不稳定。\n\n-----\n### Usage\n\n#### 1、下载Tiny-editor\n```\ngit clone https://github.com/lipten/Tiny-editor.git\n```\n\n\n#### 2、引用相关文件\n```\n\u003clink rel=\"stylesheet\" href=\"Tiny-editor.css\"/\u003e\n```\n\n#### 3、引用js文件\n```\n\u003cscript src=\"http://cdn.bootcss.com/ace/1.2.3/ace.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"Tiny-editor.js\"\u003e\u003c/script\u003e\n\n```\n\n#### 4、html结构\n```\n//--html结构比较复杂，看下载后的editor.html比较完整\n```\n\n\n#### 5、初始化代码\n```\nvar Tiny = new TinyEditor()\n```\n\n-------\n\n## Method\n\n#### Tiny.tab(num)\ntab显示第几个面板，num传序号，从1开始\n\n#### Tiny.run()\n运行结果并跳到result面板\n\n#### Tiny.save()\n保存代码至缓存\n\n#### Tiny.fullScreen()\n全屏模式开启或关闭\n\n#### Tiny.dockMode()\ndock边栏模式开启或关闭\n\n#### Tiny.liveMode()\n实时运行模式，发生change事件时执行一次，仅开启dock模式的前提下才能开启\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipten%2FTiny-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flipten%2FTiny-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipten%2FTiny-editor/lists"}