Markdown editor problems

Hello, I'm having problems with disableToolbarButtons() method. Is completely hidden the editor. Posible bug?
10 Replies
Shaung Bhone
Shaung Bhone2y ago
Show me your code
H.Bilbao
H.BilbaoOP2y 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 Bhone2y ago
Test it like remove disable method.
H.Bilbao
H.BilbaoOP2y ago
If I remove disableToolbarButtoms the editor show correctly.
Shaung Bhone
Shaung Bhone2y ago
LOL. It's bug may be. @Dan Harrin
Shaung Bhone
Shaung Bhone2y ago
Shaung Bhone
Shaung Bhone2y 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 Harrin2y ago
no need to @ me is there
Shaung Bhone
Shaung Bhone2y ago
Sorry about that!

Did you find this page helpful?