Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: mentions not working in any editor (#4915)

Aaryan Khandelwaldcbd974ac5a5
diff --git a/packages/editor/src/core/extensions/mentions/extension.tsx b/packages/editor/src/core/extensions/mentions/extension.tsx
index f6777cafcd..7f4251b070 100644
--- a/packages/editor/src/core/extensions/mentions/extension.tsx
+++ b/packages/editor/src/core/extensions/mentions/extension.tsx
@@ -52,11 +52,9 @@ export const CustomMention = ({
},
};
},
-
addNodeView() {
return ReactNodeViewRenderer(MentionNodeView);
},
-
parseHTML() {
return [
{
@@ -67,12 +65,14 @@ export const CustomMention = ({
renderHTML({ HTMLAttributes }) {
return ["mention-component", mergeAttributes(HTMLAttributes)];
},
+ }).configure({
HTMLAttributes: {
class: "mention",
},
readonly: readonly,
- mentionHighlights: mentionHighlights,
+ mentionHighlights,
suggestion: {
+ // @ts-expect-error - Tiptap types are incorrect
render: () => {
if (!mentionSuggestions) return;
let component: ReactRenderer | null = null;
diff --git a/web/core/components/issues/issue-modal/form.tsx b/web/core/components/issues/issue-modal/form.tsx
index 990509e5e3..edd99f0337 100644
--- a/web/core/components/issues/issue-modal/form.tsx
+++ b/web/core/components/issues/issue-modal/form.tsx
@@ -456,7 +456,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
ref={editorRef}
tabIndex={getTabIndex("description_html")}
placeholder={getDescriptionPlaceholder}
- containerClassName="pt-3 min-h-[150px] max-h-64 overflow-y-auto vertical-scrollbar scrollbar-sm"
+ containerClassName="pt-3 min-h-[150px]"
/>
)}
/>