1.2.18 • Published 5 months ago
@nocsi/nibler-core v1.2.18
Introduce
Headless editor with pre-existing plugins. Use by @nibler/svelte
Setup
Nibler core with written in pure typescript, Can you nextlint core with any frontend framework you like.
In this example we create a test-editor
vanilla project using vite:
pnpm create vite
cd test-editor
pnpm add @nibler/core
Setup editor:
<div id="editor" />
<script>
import {createEditor} from '@nocsi/nibler-core';
const editor = createEditor({
element: document.getElementById('editor'),
content: '',
placeholder: 'Start writing...'
});
</script>