Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tiptap): 支持tiptap自定义拓展 #72

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

TendernessCJS
Copy link
Contributor

修复 #58

顺便问下这个操作是故意的还是不小心?是因为开源协议问题阻止了对底层tiptap的拓展么?

不过 onCreateBefore 确实暴露了 extensions , 开发者依旧可以使用数组操作拓展 tiptap

onCreateBefore(_editor, extensions) {

  // extensions.push(自定义拓展插件);

  // 这个问题也导致使用 onCreateBefore 不返回 extensions 的话,组件报错
  return extensions;
}

@yangfuhai yangfuhai merged commit 34a6313 into aieditor-team:main Sep 5, 2024
@lcxyhhxi
Copy link

嗨大佬想自定义一个渲染mermaid 的组件但是每次mermaid 都会被code组件匹配到根本不会执行我定义的组件这个问题有解法吗

graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
Loading

@yangfuhai
Copy link
Contributor

嗨大佬想自定义一个渲染mermaid 的组件但是每次mermaid 都会被code组件匹配到根本不会执行我定义的组件这个问题有解法吗

graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
Loading

暂时只有商业版支持自定义组件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants