You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							86 lines
						
					
					
						
							4.5 KiB
						
					
					
				
			
		
		
	
	
							86 lines
						
					
					
						
							4.5 KiB
						
					
					
				| import { Extension } from '@tiptap/core';
 | |
| import { Blockquote } from '@tiptap/extension-blockquote';
 | |
| import { Bold } from '@tiptap/extension-bold';
 | |
| import { BulletList } from '@tiptap/extension-bullet-list';
 | |
| import { Code } from '@tiptap/extension-code';
 | |
| import { CodeBlock } from '@tiptap/extension-code-block';
 | |
| import { Document } from '@tiptap/extension-document';
 | |
| import { Dropcursor } from '@tiptap/extension-dropcursor';
 | |
| import { Gapcursor } from '@tiptap/extension-gapcursor';
 | |
| import { HardBreak } from '@tiptap/extension-hard-break';
 | |
| import { Heading } from '@tiptap/extension-heading';
 | |
| import { History } from '@tiptap/extension-history';
 | |
| import { HorizontalRule } from '@tiptap/extension-horizontal-rule';
 | |
| import { Italic } from '@tiptap/extension-italic';
 | |
| import { ListItem } from '@tiptap/extension-list-item';
 | |
| import { OrderedList } from '@tiptap/extension-ordered-list';
 | |
| import { Paragraph } from '@tiptap/extension-paragraph';
 | |
| import { Strike } from '@tiptap/extension-strike';
 | |
| import { Text } from '@tiptap/extension-text';
 | |
| 
 | |
| const StarterKit = Extension.create({
 | |
|     name: 'starterKit',
 | |
|     addExtensions() {
 | |
|         var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
 | |
|         const extensions = [];
 | |
|         if (this.options.blockquote !== false) {
 | |
|             extensions.push(Blockquote.configure((_a = this.options) === null || _a === void 0 ? void 0 : _a.blockquote));
 | |
|         }
 | |
|         if (this.options.bold !== false) {
 | |
|             extensions.push(Bold.configure((_b = this.options) === null || _b === void 0 ? void 0 : _b.bold));
 | |
|         }
 | |
|         if (this.options.bulletList !== false) {
 | |
|             extensions.push(BulletList.configure((_c = this.options) === null || _c === void 0 ? void 0 : _c.bulletList));
 | |
|         }
 | |
|         if (this.options.code !== false) {
 | |
|             extensions.push(Code.configure((_d = this.options) === null || _d === void 0 ? void 0 : _d.code));
 | |
|         }
 | |
|         if (this.options.codeBlock !== false) {
 | |
|             extensions.push(CodeBlock.configure((_e = this.options) === null || _e === void 0 ? void 0 : _e.codeBlock));
 | |
|         }
 | |
|         if (this.options.document !== false) {
 | |
|             extensions.push(Document.configure((_f = this.options) === null || _f === void 0 ? void 0 : _f.document));
 | |
|         }
 | |
|         if (this.options.dropcursor !== false) {
 | |
|             extensions.push(Dropcursor.configure((_g = this.options) === null || _g === void 0 ? void 0 : _g.dropcursor));
 | |
|         }
 | |
|         if (this.options.gapcursor !== false) {
 | |
|             extensions.push(Gapcursor.configure((_h = this.options) === null || _h === void 0 ? void 0 : _h.gapcursor));
 | |
|         }
 | |
|         if (this.options.hardBreak !== false) {
 | |
|             extensions.push(HardBreak.configure((_j = this.options) === null || _j === void 0 ? void 0 : _j.hardBreak));
 | |
|         }
 | |
|         if (this.options.heading !== false) {
 | |
|             extensions.push(Heading.configure((_k = this.options) === null || _k === void 0 ? void 0 : _k.heading));
 | |
|         }
 | |
|         if (this.options.history !== false) {
 | |
|             extensions.push(History.configure((_l = this.options) === null || _l === void 0 ? void 0 : _l.history));
 | |
|         }
 | |
|         if (this.options.horizontalRule !== false) {
 | |
|             extensions.push(HorizontalRule.configure((_m = this.options) === null || _m === void 0 ? void 0 : _m.horizontalRule));
 | |
|         }
 | |
|         if (this.options.italic !== false) {
 | |
|             extensions.push(Italic.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
 | |
|         }
 | |
|         if (this.options.listItem !== false) {
 | |
|             extensions.push(ListItem.configure((_p = this.options) === null || _p === void 0 ? void 0 : _p.listItem));
 | |
|         }
 | |
|         if (this.options.orderedList !== false) {
 | |
|             extensions.push(OrderedList.configure((_q = this.options) === null || _q === void 0 ? void 0 : _q.orderedList));
 | |
|         }
 | |
|         if (this.options.paragraph !== false) {
 | |
|             extensions.push(Paragraph.configure((_r = this.options) === null || _r === void 0 ? void 0 : _r.paragraph));
 | |
|         }
 | |
|         if (this.options.strike !== false) {
 | |
|             extensions.push(Strike.configure((_s = this.options) === null || _s === void 0 ? void 0 : _s.strike));
 | |
|         }
 | |
|         if (this.options.text !== false) {
 | |
|             extensions.push(Text.configure((_t = this.options) === null || _t === void 0 ? void 0 : _t.text));
 | |
|         }
 | |
|         return extensions;
 | |
|     },
 | |
| });
 | |
| 
 | |
| export { StarterKit, StarterKit as default };
 | |
| //# sourceMappingURL=tiptap-starter-kit.esm.js.map
 |