mirror of
https://github.com/makeplane/plane.git
synced 2026-07-11 21:10:13 +02:00
feat: minor fixes
This commit is contained in:
@@ -39,8 +39,8 @@
|
||||
"@plane/types": "*",
|
||||
"@plane/ui": "*",
|
||||
"@plane/utils": "*",
|
||||
"@tiptap/extension-bullet-list": "^2.10.3",
|
||||
"@tiptap/extension-ordered-list": "^2.10.3",
|
||||
"@tiptap/extension-bullet-list": "2.11.0",
|
||||
"@tiptap/extension-ordered-list": "2.11.0",
|
||||
"@tiptap/core": "2.10.4",
|
||||
"@tiptap/extension-blockquote": "2.10.4",
|
||||
"@tiptap/extension-character-count": "2.11.0",
|
||||
|
||||
@@ -14,6 +14,7 @@ export const CustomCodeBlockExtension = CodeBlockLowlight.extend({
|
||||
return ReactNodeViewRenderer(CodeBlockComponent);
|
||||
},
|
||||
|
||||
//@ts-expect-error todo
|
||||
addKeyboardShortcuts() {
|
||||
return {
|
||||
Enter: ({ editor }) => {
|
||||
|
||||
@@ -39,7 +39,7 @@ import { isValidHttpUrl } from "@/helpers/common";
|
||||
// plane editor extensions
|
||||
import { CoreEditorAdditionalExtensions } from "@/plane-editor/extensions";
|
||||
// types
|
||||
import { TExtensions, TFileHandler, TMentionHandler } from "@/types";
|
||||
// import { TExtensions, TFileHandler, TMentionHandler } from "@/types";
|
||||
import { DropCursorExtension } from "./drop-cursor";
|
||||
// import { createCopyToClipboardExtension } from "./clipboard-new";
|
||||
// import { MarkdownClipboard } from "./clipboard";
|
||||
@@ -180,12 +180,12 @@ export const CoreEditorExtensions = (args: TArguments): Extensions => {
|
||||
}),
|
||||
CustomCodeMarkPlugin,
|
||||
CustomCodeInlineExtension,
|
||||
Markdown.configure({
|
||||
html: true,
|
||||
transformCopiedText: false,
|
||||
transformPastedText: true,
|
||||
breaks: true,
|
||||
}),
|
||||
// Markdown.configure({
|
||||
// html: true,
|
||||
// transformCopiedText: false,
|
||||
// transformPastedText: true,
|
||||
// breaks: true,
|
||||
// }),
|
||||
MarkdownClipboard,
|
||||
Table,
|
||||
TableHeader,
|
||||
@@ -221,7 +221,7 @@ export const CoreEditorExtensions = (args: TArguments): Extensions => {
|
||||
CustomTextAlignExtension,
|
||||
CustomCalloutExtension,
|
||||
CustomColorExtension,
|
||||
...(CoreEditorAdditionalExtensions({
|
||||
...CoreEditorAdditionalExtensions({
|
||||
disabledExtensions,
|
||||
}),
|
||||
];
|
||||
|
||||
@@ -24,7 +24,7 @@ export const joinListUp: Command = (state, dispatch, view) => {
|
||||
// Handle case when there's a list node before
|
||||
if (
|
||||
nodeBefore?.type.name === "list" &&
|
||||
nodeBefore?.lastChild.isBlock &&
|
||||
nodeBefore?.lastChild?.isBlock &&
|
||||
!nodeBefore.lastChild.type.name.startsWith("paragraph")
|
||||
) {
|
||||
if (dispatch) {
|
||||
|
||||
@@ -28,6 +28,7 @@ declare module "@tiptap/core" {
|
||||
}
|
||||
|
||||
const { attrs, parseDOM, toDOM, content, group } = createListSpec();
|
||||
|
||||
const listKeymapPlugin = keymap(listKeymap);
|
||||
const listInputRulePlugin = inputRules({ rules: listInputRules });
|
||||
|
||||
@@ -39,13 +40,13 @@ export const FlatListExtension = Node.create({
|
||||
selectable: true,
|
||||
draggable: true,
|
||||
addAttributes() {
|
||||
return attrs;
|
||||
return attrs || {};
|
||||
},
|
||||
parseHTML() {
|
||||
return parseDOM;
|
||||
},
|
||||
renderHTML({ node }) {
|
||||
return toDOM(node);
|
||||
return toDOM?.(node) || ["div", 0];
|
||||
},
|
||||
addCommands() {
|
||||
return {
|
||||
|
||||
@@ -35,7 +35,7 @@ import { isValidHttpUrl } from "@/helpers/common";
|
||||
// plane editor extensions
|
||||
import { CoreReadOnlyEditorAdditionalExtensions } from "@/plane-editor/extensions";
|
||||
// types
|
||||
import { TExtensions, TFileHandler, TReadOnlyMentionHandler } from "@/types";
|
||||
// import { TExtensions, TFileHandler, TReadOnlyMentionHandler } from "@/types";
|
||||
import { TExtensions, TReadOnlyFileHandler, TReadOnlyMentionHandler } from "@/types";
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -110,6 +110,7 @@ export const Table = Node.create({
|
||||
return ["table", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), ["tbody", 0]];
|
||||
},
|
||||
|
||||
//@ts-expect-error todo
|
||||
addCommands() {
|
||||
return {
|
||||
insertTable:
|
||||
|
||||
Reference in New Issue
Block a user