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

Feat/equation #953

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: type error
  • Loading branch information
jkcs committed Jul 19, 2024
commit ca63b7ea2361200cac4aa65bd99e8809d69b88c9
2 changes: 1 addition & 1 deletion examples/03-ui-components/13-equation/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const insertLaTex = (editor: typeof schema.BlockNoteEditor) => ({
const pos = editor._tiptapEditor.state.selection.from;
const tr = view.state.tr.insert(
pos,
view.state.schema.nodes.inlineEquation.create(""),
view.state.schema.nodes.inlineEquation.create(),
);
view.dispatch(tr);
},
Expand Down
1 change: 1 addition & 0 deletions examples/03-ui-components/13-equation/Equation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ export const InlineEquation = createInternalInlineContentSpec(
{
content: "styled",
type: "inlineEquation",
propSchema: {},
},
{
node,
Expand Down
Loading