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 { ListOrdered } from 'lucide-react';
import { EditorCommand } from '@colanode/client/types';
export const OrderedListCommand: EditorCommand = {
key: 'ordered-list',
name: 'Ordered List',
description: 'Insert a numbered list',
keywords: ['numberedlist', 'numbered', 'ordered', 'list'],
icon: ListOrdered,
disabled: false,
handler: ({ editor, range }) => {
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
},
};