{"id":13769919,"url":"https://github.com/alexiej/editorjs-codemirror","last_synced_at":"2025-05-11T02:33:45.320Z","repository":{"id":41352468,"uuid":"241719097","full_name":"alexiej/editorjs-codemirror","owner":"alexiej","description":"CodeMiirror for EditorJS","archived":false,"fork":false,"pushed_at":"2022-12-05T09:21:01.000Z","size":1329,"stargazers_count":19,"open_issues_count":15,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T05:33:59.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexiej.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-19T20:30:32.000Z","updated_at":"2024-09-18T12:53:54.000Z","dependencies_parsed_at":"2023-01-23T16:45:14.166Z","dependency_job_id":null,"html_url":"https://github.com/alexiej/editorjs-codemirror","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexiej%2Feditorjs-codemirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexiej%2Feditorjs-codemirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexiej%2Feditorjs-codemirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexiej%2Feditorjs-codemirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexiej","download_url":"https://codeload.github.com/alexiej/editorjs-codemirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253507242,"owners_count":21919179,"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-03T17:00:32.755Z","updated_at":"2025-05-11T02:33:44.952Z","avatar_url":"https://github.com/alexiej.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":["Block Tools"],"readme":"![](https://badgen.net/badge/Editor.js/v2.0/blue)\n\n# CodeMirror Tool for Editor.js\n\nCode Mirror for the [Editor.js](https://ifmo.su/editor) allows to include code examples in your articles.\n\n![image-20200219214508250](assets/image-20200219214508250.png) [README.md](README.md) \n\n## Know Bugs\n\n* On focus, when cursor is blinking, the ediitor always activate event  'OnChange'.\n\n## Installation\n\n### Install via NPM\n\n**TODO:**\n\n###  Download to your project's source dir\n\n1. Upload folder `dist` from repository\n2. Add `dist/bundle.js` file to your page.\n\n### Load from source\n\nRequire this script on a page with Editor.js.\n\n```html\n\u003cscript src=\"...\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nAdd a new Tool to the `tools` property of the Editor.js initial config.\n\n```javascript\nvar editor = EditorJS({\n  ...\n  \n  tools: {\n    ...\n    code: CodeMirror,\n  }\n  \n  ...\n});\n```\n\n## Config Params\n\n| Field       | Type     | Description                    |\n| ----------- | -------- | -------------------------------|\n| placeholder | `string` | Code Tool's placeholder string |\n\n## Output data\n\nThis Tool returns code.\n\n```json\n{\n    \"type\" : \"code\",\n    \"data\" : {\n        \"code\": \"body {\\n font-size: 14px;\\n line-height: 16px;\\n}\",\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexiej%2Feditorjs-codemirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexiej%2Feditorjs-codemirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexiej%2Feditorjs-codemirror/lists"}