0.0.10 • Published 3 years ago

@anthony809/svelte-editorjs v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

A Svelte editor powered by EditorJS.

Install Svelte Editor

npm install @anthony809/svelte-editor

Import Editor

import Editor from "@anthony809/svelte-editor/Editor.svelte";

How to use

Simple, add the Editor component from @anthony809/svelte-editor/Editor.svelte to your svelte pages.

<script lang="ts">
    import Editor from "@anthony809/svelte-editor/Editor.svelte";
    let Editor:any
</script>

<EditorJs bind:data={editorJsData} />

Bind data from Editor to always have the latest data

<EditorJs bind:data={editorJsData} />

How to view data saved from Editor

<script lang="ts">
    import savedEditorData from "yourDataSource"
    // Import editor viewer
    import EditorViewer from "@anthony809/svelte-editor/Viewer.svelte";
</script>

<EditorViewer data={EditorViewer} />

More about EditorJS

Editor.js

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago