filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
17.59k stars 2.75k forks source link

[Bug]: `side-by-side` and `preview` EasyMDE builtin toolbar buttons don't work. #12185

Closed faizananwerali closed 5 months ago

faizananwerali commented 5 months ago

Package

filament/filament

Package Version

latest

Laravel Version

v11.x

Livewire Version

v3.x

PHP Version

v8.3

Problem description

side-by-side and preview EasyMDE toolbar buttons don't work.

Looks like, buttons are hard coded defined forms/resources/js/components/markdown-editor.js#L219

But here in forms/resources/js/components/markdown-editor/EasyMDE.js#L1671 you can clearly see a lot of bulltin buttons available.

So, why all buttons are not available to use?

How to use EasyMDE builtin toolbar buttons?

Expected behavior

side-by-side and preview EasyMDE toolbar buttons should work.

Steps to reproduce

MarkdownEditor::make('content')
    ->toolbarButtons([
        'attachFiles',
        'blockquote',
        'bold',
        'bulletList',
        'codeBlock',
        'heading',
        'italic',
        'link',
        'orderedList',
        'redo',
        'strike',
        'table',
        'undo',
        'preview',
        'step-by-step',
    ]);

Reproduction repository

https://github.com/filamentphp/filament

Relevant log output

No response

github-actions[bot] commented 5 months ago

Hey @faizananwerali! We're sorry to hear that you've hit this issue. 💛

However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?

We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.