Skip to content

added documentation for new callback method of creating ext #176

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

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

bdbch
Copy link
Member

@bdbch bdbch commented Apr 25, 2025

Documentation Enhancements:

Extensions:

  • Added an example of using a callback function to create a custom extension in src/content/editor/extensions/custom-extensions/create-new/extension.mdx and index.mdx. The example highlights encapsulating logic like event handlers (onCreate, onUpdate) and custom variables (customVariable). [1] [2]

Nodes:

  • Introduced a similar example for creating custom nodes using a callback function in src/content/editor/extensions/custom-extensions/create-new/index.mdx and node.mdx. The example demonstrates encapsulating logic for node-specific behavior. [1] [2]

Marks:

  • Added an example for creating custom marks with a callback function in src/content/editor/extensions/custom-extensions/create-new/index.mdx and mark.mdx. This includes encapsulating logic for mark-specific behavior. [1] [2]

Copy link

vercel bot commented Apr 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tiptap-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2025 10:41pm

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.

1 participant