All Projects → nathanfaucett → svelte-slate

nathanfaucett / svelte-slate

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
slate svelte view layer

Programming Languages

Svelte
593 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to svelte-slate

remark-slate-transformer
remark plugin to transform remark syntax tree (mdast) to Slate document tree, and vice versa. Made for WYSIWYG markdown editor.
Stars: ✭ 62 (+44.19%)
Mutual labels:  wysiwyg, slate, slatejs
Text
📑 Collaborative document editing using Markdown
Stars: ✭ 282 (+555.81%)
Mutual labels:  text, wysiwyg, wysiwyg-editor
am-editor
A rich text collaborative editor framework that can use React and Vue custom plug-ins. 一个富文本实时协同编辑器框架,可以使用React和Vue自定义插件。
Stars: ✭ 542 (+1160.47%)
Mutual labels:  wysiwyg, text-editor, wysiwyg-editor
bangle.dev
Collection of higher level rich text editing tools. It powers the local only note taking app https://bangle.io
Stars: ✭ 541 (+1158.14%)
Mutual labels:  wysiwyg, text-editor, wysiwyg-editor
Wysiwyg.js
wysiwyg contenteditable editor (minified+compression: 6kb)
Stars: ✭ 520 (+1109.3%)
Mutual labels:  wysiwyg, text-editor, wysiwyg-editor
Graphviz Visual Editor
A web application for interactive visual editing of Graphviz graphs described in the DOT language.
Stars: ✭ 261 (+506.98%)
Mutual labels:  wysiwyg, text-editor, wysiwyg-editor
typester
✒️ A WYSIWYG that gives you predictable and clean HTML
Stars: ✭ 29 (-32.56%)
Mutual labels:  wysiwyg, text-editor, wysiwyg-editor
Canner Slate Editor
📝Rich Text / WYSIWYG Editor built for Modularity and Extensibility.
Stars: ✭ 1,071 (+2390.7%)
Mutual labels:  wysiwyg, slate, wysiwyg-editor
Slate Plugins
🔌 Next-gen slate plugins
Stars: ✭ 399 (+827.91%)
Mutual labels:  wysiwyg, slate, wysiwyg-editor
Re Editor
一个开箱即用的React富文本编辑器 🚀re-editor
Stars: ✭ 367 (+753.49%)
Mutual labels:  wysiwyg, slate, wysiwyg-editor
Angular Froala Wysiwyg
Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
Stars: ✭ 696 (+1518.6%)
Mutual labels:  wysiwyg, text-editor, wysiwyg-editor
Pell
📝 the simplest and smallest WYSIWYG text editor for web, with no dependencies
Stars: ✭ 11,653 (+27000%)
Mutual labels:  wysiwyg, text-editor, wysiwyg-editor
mg
OpenBSD Mg editor. Portable Public Domain Micro Emacs for *BSD, Cygwin, Linux, Mac OS X.
Stars: ✭ 99 (+130.23%)
Mutual labels:  text, text-editor
text-style-editor
Text style editor widget for flutter
Stars: ✭ 25 (-41.86%)
Mutual labels:  text, text-editor
instagram-text-editor
An Instagram like text editor Flutter widget that helps you to change your text style.
Stars: ✭ 66 (+53.49%)
Mutual labels:  text, text-editor
tedit
simple tabbed text editor written in core Tcl/Tk
Stars: ✭ 17 (-60.47%)
Mutual labels:  text, text-editor
Textbus
基于组件 + 数据驱动的现代富文本编辑器
Stars: ✭ 242 (+462.79%)
Mutual labels:  wysiwyg, wysiwyg-editor
boxquote.el
Quote text with a semi-box.
Stars: ✭ 16 (-62.79%)
Mutual labels:  text, text-editor
ngx-wall
Helps build content editor for note-taking application
Stars: ✭ 78 (+81.4%)
Mutual labels:  wysiwyg, wysiwyg-editor
Markup It
JavaScript library to parse and serialize markup content (Markdown and HTML)
Stars: ✭ 242 (+462.79%)
Mutual labels:  wysiwyg, slate

svelte slate

examples license npm (scoped) build

Tools

tries to mimic the react api from slate-react as much as possible

<script lang="ts">
	import { Slate, Editable, withSvelte } from 'svelte-slate';
	import { createEditor } from 'slate';

	const editor = withSvelte(createEditor());
	let value = [
		{
			type: 'paragraph',
			children: [{ text: 'This is editable ' }]
		}
	];
</script>

<Slate {editor} bind:value>
	<Editable placeholder="Enter some plain text..." />
</Slate>

Vite Problems

using the plugin imports can result in mutiple instances of svelte witch can cause context errors, exclude svelte-slate from deps here

export default defineConfig({
	optimizeDeps: {
		exclude: ['svelte-slate']
	}
});

Custom Rendering

Default components for elements, leafs, and placeholders are provider but can easily be overridden see Element.svelte and Leaf.svelte and then can be used in the editable component like <Editable {Element} {Leaf} />

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].