https://github.com/demonicious/svelte-pell
Pell implementation as a Svelte Component
https://github.com/demonicious/svelte-pell
Last synced: 3 months ago
JSON representation
Pell implementation as a Svelte Component
- Host: GitHub
- URL: https://github.com/demonicious/svelte-pell
- Owner: Demonicious
- Created: 2020-09-05T10:02:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T00:22:57.000Z (over 4 years ago)
- Last Synced: 2025-04-03T12:03:18.182Z (3 months ago)
- Language: Svelte
- Size: 9.77 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

### 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
```htmlimport 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:
```htmlimport PellEditor from "svelte-pell";
function changeHandler(e) {
const { html } = e.detail;console.log(html);
}```