Markdown editor problems

Hello, I'm having problems with disableToolbarButtons() method. Is completely hidden the editor. Posible bug?
10 Replies
Shaung Bhone
Shaung Bhone17mo ago
Show me your code
H.Bilbao
H.BilbaoOP17mo ago
Forms\Components\MarkdownEditor::make('description')
->disableToolbarButtons([
'attachFiles',
])
->maxLength(160)
->label(trans('category.resource.description')),
Forms\Components\MarkdownEditor::make('description')
->disableToolbarButtons([
'attachFiles',
])
->maxLength(160)
->label(trans('category.resource.description')),
Shaung Bhone
Shaung Bhone17mo ago
Test it like remove disable method.
H.Bilbao
H.BilbaoOP17mo ago
If I remove disableToolbarButtoms the editor show correctly.
Shaung Bhone
Shaung Bhone17mo ago
LOL. It's bug may be. @Dan Harrin
Shaung Bhone
Shaung Bhone17mo ago
Shaung Bhone
Shaung Bhone17mo ago
RichEditor is working. MarkdownEditor is not working. @h.bilbao
Forms\Components\MarkdownEditor::make('name')
->toolbarButtons([
'blockquote',
'bold',
'bulletList',
'codeBlock',
'h2',
'h3',
'italic',
'link',
'orderedList',
'redo',
'strike',
'undo',
])
Forms\Components\MarkdownEditor::make('name')
->toolbarButtons([
'blockquote',
'bold',
'bulletList',
'codeBlock',
'h2',
'h3',
'italic',
'link',
'orderedList',
'redo',
'strike',
'undo',
])
temporary use like this. I think attachfile is a bug.
Dan Harrin
Dan Harrin17mo ago
no need to @ me is there
Shaung Bhone
Shaung Bhone17mo ago
Sorry about that!
Want results from more Discord servers?
Add your server