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

bug: editor.chain(...).focus(...).toggleUnderline is not a function when underlining a word #435

Open
FreeSpirit777 opened this issue Aug 7, 2024 · 6 comments · May be fixed by #436
Open

Comments

@FreeSpirit777
Copy link

Provide environment information

System:
OS: Linux 6.1 Fedora Linux 38 (Thirty Eight)
CPU: (3) x64 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz
Memory: 1.76 GB / 3.98 GB
Container: Yes
Shell: 5.2.26 - /bin/bash
Binaries:
Node: 18.19.0 - /usr/bin/node
npm: 10.2.3 - /usr/bin/npm
pnpm: 9.6.0 - /usr/local/bin/pnpm
bun: 1.1.20 - ~/.bun/bin/bun

Describe the bug

Hi, I'm working with the novel-tailwind-example. I have upgraded all packages to the newest versions but now I get the error: "TypeError: editor.chain(...).focus(...).toggleUnderline is not a function" when underlining a word and "TypeError: editor.commands.unsetColor is not a function" when trying to give another color. What can I do?

Link to reproduction

https://github.com/steven-tey/novel/tree/main/examples/novel-tailwind

To reproduce

See above

Additional information

No response

@jiaweing
Copy link

jiaweing commented Aug 7, 2024

I have the same issue as well.

TypeError: editor.commands.unsetColor is not a function

@Darpan-favfly
Copy link

I have same issue please give us a solution

image
image

@mathiasrscom
Copy link

I got the same for for editor?.chain().unsetHighlight().run() I need to revert back until this is solved.

@Gaoridang
Copy link

I've made a PR for this issue. It may resolve the error!

@rajinsyed
Copy link

Getting the same issue. editor.chain(...).focus(...).setLatex is not a function

@yamz8
Copy link

yamz8 commented Aug 22, 2024

I've made a PR for this issue. It may resolve the error!

thanks for that, you don't have to wait for the pr,

just add that to your extension file:

TiptapUnderline,
Color,
TextStyle,
HighlightExtension.configure({
multicolor: true,
}),

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 a pull request may close this issue.

7 participants