chore: Editor refactor (#3286)
* cleanup * add context * EventEmitter allows removal of toolbar props from extensions * Move to 'packages' of extensions Remove EmojiTrigger extension * types * iteration * fix render flashing * fix: Missing nodes in collection descriptions
This commit is contained in:
52
shared/editor/packages/full.ts
Normal file
52
shared/editor/packages/full.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
import Extension from "../lib/Extension";
|
||||
import Highlight from "../marks/Highlight";
|
||||
import Mark from "../marks/Mark";
|
||||
import TemplatePlaceholder from "../marks/Placeholder";
|
||||
import Attachment from "../nodes/Attachment";
|
||||
import BulletList from "../nodes/BulletList";
|
||||
import CheckboxItem from "../nodes/CheckboxItem";
|
||||
import CheckboxList from "../nodes/CheckboxList";
|
||||
import CodeBlock from "../nodes/CodeBlock";
|
||||
import CodeFence from "../nodes/CodeFence";
|
||||
import Embed from "../nodes/Embed";
|
||||
import Heading from "../nodes/Heading";
|
||||
import HorizontalRule from "../nodes/HorizontalRule";
|
||||
import ListItem from "../nodes/ListItem";
|
||||
import Node from "../nodes/Node";
|
||||
import Notice from "../nodes/Notice";
|
||||
import OrderedList from "../nodes/OrderedList";
|
||||
import Table from "../nodes/Table";
|
||||
import TableCell from "../nodes/TableCell";
|
||||
import TableHeadCell from "../nodes/TableHeadCell";
|
||||
import TableRow from "../nodes/TableRow";
|
||||
import BlockMenuTrigger from "../plugins/BlockMenuTrigger";
|
||||
import Folding from "../plugins/Folding";
|
||||
import Keys from "../plugins/Keys";
|
||||
import basicPackage from "./basic";
|
||||
|
||||
const fullPackage: (typeof Node | typeof Mark | typeof Extension)[] = [
|
||||
...basicPackage,
|
||||
CodeBlock,
|
||||
CodeFence,
|
||||
CheckboxList,
|
||||
CheckboxItem,
|
||||
BulletList,
|
||||
OrderedList,
|
||||
Embed,
|
||||
ListItem,
|
||||
Attachment,
|
||||
Notice,
|
||||
Heading,
|
||||
HorizontalRule,
|
||||
Table,
|
||||
TableCell,
|
||||
TableHeadCell,
|
||||
TableRow,
|
||||
Highlight,
|
||||
TemplatePlaceholder,
|
||||
Folding,
|
||||
Keys,
|
||||
BlockMenuTrigger,
|
||||
];
|
||||
|
||||
export default fullPackage;
|
||||
Reference in New Issue
Block a user