awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
251 stars 65 forks source link

Problem after install the package #347

Closed DevYSM closed 3 months ago

DevYSM commented 3 months ago

Filament Version

v3

Plugin Version

3

PHP Version

8.1

Problem description

Hello Dears, I have installed the plugin and followed the installation guide and everything is good but after I used the editor I got the following issue.

Uncaught TypeError: editor(...).chain(...).focus(...).toggleCodeBlock is not a function at [Alpine] editor().chain().focus().toggleCodeBlock().run() (eval at safeAsyncFunction (http://new-bayern-web-app.test/livewire/livewire.js?id=d02a3788:1251:21), :3:57) at livewire.js?id=d02a3788:1273:23 at tryCatch (livewire.js?id=d02a3788:1193:14) at livewire.js?id=d02a3788:3787:7 at handler4 (livewire.js?id=d02a3788:3114:27) at livewire.js?id=d02a3788:3179:7 at HTMLButtonElement. (livewire.js?id=d02a3788:3116:54)

image

Expected behavior

The expected is working normally after installation.

Steps to reproduce

image

Reproduction repository

No response

Relevant log output

No response

DevYSM commented 3 months ago

@awcodes Can you help me?

awcodes commented 3 months ago

well, you missed some steps about the styling and custom theme.

But your overriding the tools with an empty array so they aren't getting registered with the tiptap js editor. ->tools() should never be an empty array. :)

DevYSM commented 3 months ago

well, you missed some steps about the styling and custom theme.

But your overriding the tools with an empty array so they aren't getting registered with the tiptap js editor. ->tools() should never be an empty array. :)

Thanks, It's working now.

awcodes commented 3 months ago

Your styles are still not getting loaded correctly. That's why you're seeing the blue ring around the buttons.

Probably has to do with your tailwind.config.js not using the filament preset.

awcodes commented 3 months ago

glad you got it working though. cheers.

DevYSM commented 3 months ago

glad you got it working though. cheers.

All appreciate for you. <3