# svelte-pell

> ![svelte-pell](https://i.imgur.com/aS1a1Sw.png)

Latest version **1.0.2** (published 2020-10-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install svelte-pell
pnpm add svelte-pell
yarn add svelte-pell
bun add svelte-pell
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-10-06 |
| First published | 2020-09-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 35.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Demonicious |
| Maintainers | demonicious |
| Keywords | svelte, pell |

## Links

- npm: https://www.npmjs.com/package/svelte-pell
- Repository: https://github.com/demonicious/svelte-pell
- Issues: https://github.com/demonicious/svelte-pell
- npm.io page: https://npm.io/package/svelte-pell

## Dependencies (1)

- [pell](https://npm.io/package/pell.md) ^1.0.6

## Recent versions

- 1.0.2 (latest) — 2020-10-06
- 1.0.1 — 2020-09-05
- 1.0.0 — 2020-09-05

## README

![svelte-pell](https://i.imgur.com/aS1a1Sw.png)

### Svelte-Pell
An implementation of [Pell](https://github.com/jaredreich/pell) as a Svelte Component.

#### 1. Installation
From [npm](https://npmjs.com/package/svelte-pell):
```
npm i -D svelte-pell
```

#### 2. Basic Usage
```html
<script>
    import PellEditor from "svelte-pell";

    let html = '';
</script>

<PellEditor bind:html={html} />
```
#### 3. Configuration
```html
// Refer to https://github.com/jaredreich/pell for all configuration options.
<script>
    import PellEditor from "svelte-pell";
</script>

<PellEditor 
    defaultParagraphSeparator="div"
    styleWithCSS={false}
    actions={[
        'bold',
        'underline',
        'strikethrough'
    ]}
    classes={{
        actionbar: 'pell-actionbar',
        button: 'pell-button',
        content: 'pell-content',
        selected: 'pell-button-selected'
    }}

/>
```
#### 4. Binding to Change Event
This is most likely-unnecessary since you can use `bind:html` Instead but:
```html
<script>
    import PellEditor from "svelte-pell";

    function changeHandler(e) {
        const { html } = e.detail;

        console.log(html);
    }
</script>

<PellEditor on:change={ changeHandler } />
```

---
_Source: https://npm.io/package/svelte-pell · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
