{"id":15064420,"url":"https://github.com/demonicious/svelte-pell","last_synced_at":"2025-04-10T11:52:39.133Z","repository":{"id":57375302,"uuid":"293049297","full_name":"Demonicious/svelte-pell","owner":"Demonicious","description":"Pell implementation as a Svelte Component","archived":false,"fork":false,"pushed_at":"2020-10-06T00:22:57.000Z","size":10,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T12:03:18.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","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/Demonicious.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":"2020-09-05T10:02:42.000Z","updated_at":"2022-08-23T13:31:53.000Z","dependencies_parsed_at":"2022-09-05T14:11:27.286Z","dependency_job_id":null,"html_url":"https://github.com/Demonicious/svelte-pell","commit_stats":null,"previous_names":["mudassarislam/svelte-pell","demonicious/svelte-pell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonicious%2Fsvelte-pell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonicious%2Fsvelte-pell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonicious%2Fsvelte-pell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demonicious%2Fsvelte-pell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Demonicious","download_url":"https://codeload.github.com/Demonicious/svelte-pell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248215192,"owners_count":21066622,"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-09-25T00:18:03.412Z","updated_at":"2025-04-10T11:52:39.113Z","avatar_url":"https://github.com/Demonicious.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"![svelte-pell](https://i.imgur.com/aS1a1Sw.png)\n\n### Svelte-Pell\nAn implementation of [Pell](https://github.com/jaredreich/pell) as a Svelte Component.\n\n#### 1. Installation\nFrom [npm](https://npmjs.com/package/svelte-pell):\n```\nnpm i -D svelte-pell\n```\n\n#### 2. Basic Usage\n```html\n\u003cscript\u003e\n    import PellEditor from \"svelte-pell\";\n\n    let html = '';\n\u003c/script\u003e\n\n\u003cPellEditor bind:html={html} /\u003e\n```\n#### 3. Configuration\n```html\n// Refer to https://github.com/jaredreich/pell for all configuration options.\n\u003cscript\u003e\n    import PellEditor from \"svelte-pell\";\n\u003c/script\u003e\n\n\u003cPellEditor \n    defaultParagraphSeparator=\"div\"\n    styleWithCSS={false}\n    actions={[\n        'bold',\n        'underline',\n        'strikethrough'\n    ]}\n    classes={{\n        actionbar: 'pell-actionbar',\n        button: 'pell-button',\n        content: 'pell-content',\n        selected: 'pell-button-selected'\n    }}\n\n/\u003e\n```\n#### 4. Binding to Change Event\nThis is most likely-unnecessary since you can use `bind:html` Instead but:\n```html\n\u003cscript\u003e\n    import PellEditor from \"svelte-pell\";\n\n    function changeHandler(e) {\n        const { html } = e.detail;\n\n        console.log(html);\n    }\n\u003c/script\u003e\n\n\u003cPellEditor on:change={ changeHandler } /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemonicious%2Fsvelte-pell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemonicious%2Fsvelte-pell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemonicious%2Fsvelte-pell/lists"}