@kalem-editor/wc
v1.0.0
Published
Kalem as a form-associated custom element — <kalem-editor>, no framework needed
Maintainers
Readme
@kalem-editor/wc
Kalem as a form-associated custom element — , no framework needed.
Part of Kalem — a WYSIWYG editor for people who don't know Markdown, that saves Markdown.
npm i @kalem-editor/wc @kalem-editor/themes<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@kalem-editor/themes/css/tokens.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@kalem-editor/themes/css/viewer.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@kalem-editor/themes/css/editor.css">
<form method="post">
<kalem-editor name="body" label="Post"># Hello</kalem-editor>
<button>Save</button>
</form>
<script src="https://cdn.jsdelivr.net/npm/@kalem-editor/wc/dist/kalem-editor.iife.js"></script>A form-associated custom element: the form submits Markdown like a <textarea>. Works in Svelte, Angular, Astro and plain HTML. With a bundler: import '@kalem-editor/wc/define';.
Documentation, guides and the full API: see the Kalem repository.
License
MIT
