awcodes / filament-tiptap-editor

A Rich Text Editor plugin for Filament Forms.
MIT License
261 stars 71 forks source link

feat: Disable toolbar menus #263

Closed MtDalPizzol closed 7 months ago

MtDalPizzol commented 8 months ago

Allows to hide the toolbar for an even more minimalistic look.

image

awcodes commented 8 months ago

I like where your head is at, but I'm hesitant to do this as it will remove the full screen, redo, undo, reset and paragraph options.

MtDalPizzol commented 8 months ago

Well... I did this because I have a use case where those options are simply a huge overkill and getting rid of them was actually the very reason why I did this. And I think having this as a built in option instead of having to hack into CSS to hide the toolbar is a lot more simple and reusable. Also, at least from my "not profound" understanding of the package internals, I can't see any drawbacks for having this as an option.

MtDalPizzol commented 8 months ago

Sorry.... I should have mention in the pull request itself that hiding those options was the reason for having this...

awcodes commented 8 months ago

Seems a little overkill to load all of the plugin's functionality to have a more simple user interface. I'm wondering if this might be better as a separate plugin, to keep the build size down. 🤔

MtDalPizzol commented 8 months ago

No problem... In my case, I'm using several instances of TiptapEditor, each with it's own set of tools. And in the case of the image I attached, I'm using only 2 tools. So, this isn't really an issue for me. But I totally understand the concern...