{"id":50316033,"url":"https://github.com/codebydusk/digipad","last_synced_at":"2026-05-29T00:02:32.925Z","repository":{"id":219274004,"uuid":"732779743","full_name":"codebydusk/digipad","owner":"codebydusk","description":"A WYSIWYG Rich Text Editor without execCommand() Method; that too as a web component!","archived":false,"fork":false,"pushed_at":"2024-04-27T19:42:42.000Z","size":409,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-24T10:32:19.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebydusk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-17T19:55:00.000Z","updated_at":"2024-04-27T19:42:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"604de175-aebb-4722-a222-cfbe743d3999","html_url":"https://github.com/codebydusk/digipad","commit_stats":null,"previous_names":["dusk196/digipad","codebydusk/digipad"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codebydusk/digipad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fdigipad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fdigipad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fdigipad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fdigipad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebydusk","download_url":"https://codeload.github.com/codebydusk/digipad/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fdigipad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33630999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":"2026-05-29T00:02:28.629Z","updated_at":"2026-05-29T00:02:32.920Z","avatar_url":"https://github.com/codebydusk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DigiPad\n\nAn accessible WYSIWYG Rich Text Editor without `execCommand()` Method; that too as a web component with multi-instance support!\n\n**Note:** ...doesn't work with Shadow Dom! (Why? See F.A.Qs)\n\n## So how to use this DigiPad?\n\nUsing this editor is pretty simple!\n\n```html\n\u003cdigipad id=\"editor1\"\u003e\u003c/digipad\u003e\n```\n\n| Attribute | Example | Description | Default value |\n|-|-|-|-|\n| id (string) | `\u003cdigipad id=\"editor1\"\u003e\u003c/digipad\u003e` | Unique ID that will be used to identify the editor instance. | Randomly generated UUIDs if not provided or provided values are not unique in case of multiple instances. |\n| readonly (boolean) | `\u003cdigipad readonly=true\u003e\u003c/digipad\u003e` | Row 2, Col 3 | false |\n| disabled (boolean) | `\u003cdigipad disabled=true\u003e\u003c/digipad\u003e` | Row 3, Col 3 | false |\n\n## F.A.Qs\n\n### Why DigiPad doesn't work with Shadow Dom?\n\nThe `Window.getSelection()` method retrieves the selection object representing the text currently selected; which is necessary for any text editor. However, when it comes to Shadow DOM, there are some limitations due to the encapsulation provided by the Shadow DOM itself.\n\nIn Shadow DOM, the content inside the shadow DOM is encapsulated, meaning that the internal structure and elements are not directly accessible or manipulable from the outside document. This encapsulation is intentional to prevent styles and scripts from unintentionally affecting the internals of the shadow DOM.\n\nWhen you try to use `Window.getSelection()` to get the selection within a shadow DOM, it might not work as expected because the shadow DOM boundaries limit the access to the internals of the shadow DOM. Hence, DigiPad doesn't work with Shadow Dom... Yet! 😜\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebydusk%2Fdigipad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebydusk%2Fdigipad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebydusk%2Fdigipad/lists"}