Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
import { Quote } from 'lucide-react';
import { EditorCommand } from '@colanode/client/types';
export const BlockquoteCommand: EditorCommand = {
key: 'blockquote',
name: 'Blockquote',
description: 'Insert a blockquote',
keywords: ['blockquote', 'quote'],
icon: Quote,
disabled: false,
handler: ({ editor, range }) => {
editor
.chain()
.focus()
.deleteRange(range)
.toggleNode('paragraph', 'paragraph')
.toggleBlockquote()
.run();
},
};