Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/demonicious/svelte-pell

Pell implementation as a Svelte Component
https://github.com/demonicious/svelte-pell

Last synced: about 1 month ago
JSON representation

Pell implementation as a Svelte Component

Awesome Lists containing this project

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

import PellEditor from "svelte-pell";

let html = '';

```
#### 3. Configuration
```html
// Refer to https://github.com/jaredreich/pell for all configuration options.

import PellEditor from "svelte-pell";

```
#### 4. Binding to Change Event
This is most likely-unnecessary since you can use `bind:html` Instead but:
```html

import PellEditor from "svelte-pell";

function changeHandler(e) {
const { html } = e.detail;

console.log(html);
}

```