{"id":26046716,"url":"https://github.com/albertfdp/ckeditor-html-issue","last_synced_at":"2025-07-10T05:34:50.061Z","repository":{"id":281012038,"uuid":"943918249","full_name":"albertfdp/ckeditor-html-issue","owner":"albertfdp","description":"A minimal reproduction repository demonstrating a bug in CKEditor 5 where the editor crashes when using Remove Format on content with empty span elements.","archived":false,"fork":false,"pushed_at":"2025-03-11T06:56:10.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T21:03:42.748Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/albertfdp.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-06T13:36:10.000Z","updated_at":"2025-03-10T08:04:16.000Z","dependencies_parsed_at":"2025-03-06T14:45:17.204Z","dependency_job_id":null,"html_url":"https://github.com/albertfdp/ckeditor-html-issue","commit_stats":null,"previous_names":["albertfdp/ckeditor-html-issue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/albertfdp/ckeditor-html-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fckeditor-html-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fckeditor-html-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fckeditor-html-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fckeditor-html-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertfdp","download_url":"https://codeload.github.com/albertfdp/ckeditor-html-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fckeditor-html-issue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264535997,"owners_count":23624405,"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":"2025-03-07T21:12:36.505Z","updated_at":"2025-07-10T05:34:50.057Z","avatar_url":"https://github.com/albertfdp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CKEditor HTML issue\n\nThis repository demonstrates a specific bug in CKEditor 5 when using the [General HTML Support](https://ckeditor.com/docs/ckeditor5/latest/features/html/general-html-support.html) plugin together with the [Remove formatting](https://ckeditor.com/docs/ckeditor5/latest/features/remove-format.html) feature.\n\nYou can see a video of the crash [here](https://drive.google.com/file/d/1mzhjdgmbDIH-PGqIcWDeWqbZdajCXJLh/view?usp=drive_link).\n\n## Reproduction\n\nThe main issue occurs when:\n\n1. The editor is configured to allow empty \u003cspan\u003e elements via the htmlSupport configuration\n2. The content contains empty spans with class attributes\n3. A user tries to use the \"Remove Format\" button from the toolbar\n4. When these conditions are met, the editor crashes completely.\n\nExample configuration for `htmlSupport`:\n\n```js\nhtmlSupport: {\n  allowEmpty: [\"span\"],\n  allow: [{ name: \"span\", classes: true }],\n},\n```\n\nExample content:\n\n```html\n\u003cp\u003e\n  Hello from CKEditor 5! \u003cspan class=\"test\"\u003e\u003c/span\u003e here test\n\u003c/p\u003e\n```\n\n## Running the example\n\n```sh\nnpm install\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Fckeditor-html-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertfdp%2Fckeditor-html-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Fckeditor-html-issue/lists"}