Community Extension: A calculation 'widget' #4134
mcshaz
started this conversation in
Community Extensions
Replies: 1 comment
-
Hey @mcshaz cool! I tried to test it and had my browser tab hanging up when I clicked on the gray squares inside the editor content. What is the expected behavior there? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Summary
look at the simplified working example
TLDR; version
This is a simple proof of concept to design an extension meeting the following requirements:
Final use case will be for calculating and displaying drug doses
URL
Source Code
https://github.com/mcshaz/tiptap-calculation-example/tree/main
Github pages working example
https://mcshaz.github.io/tiptap-calculation-example/
About
The particular code I would be interested in peoples thoughts are:
https://github.com/mcshaz/tiptap-calculation-example/blob/main/src/tiptap/Calculation.ts
and
https://github.com/mcshaz/tiptap-calculation-example/blob/main/src/tiptap/helpers/ClickNodeHandler.ts
The extension borrows heavily from the Tiptap Mentions Plugin
Type
Document Editor
Other
Pull requests, suggestions and code reviews (including to improve adherance to Tiptap or Vue style guides and recommended practice or improving use cases and extensibility) are welcome...
Beta Was this translation helpful? Give feedback.
All reactions