laravel-form-components
laravel-form-components copied to clipboard
Quill Options withToolbarButton Not Work
Laravel Form Components Version
^7.1
Laravel Version
v8.83.10
Alpine Version
v3.3.2
Bug description
When adding a custom button from the Syntax error, I already tested on pages in white only with the component and returns the same error.
Taking the very example of the site.
Steps to reproduce
<x-quill :quill-options="QuillOptions::defaults()->withToolbarButton('variables', <<<HTML
const cursorPosition = this.quill.getSelection().index;
this.quill.insertText(cursorPosition, value);
this.quill.setSelection(cursorPosition + value.length);
HTML, ['Option 1', 'Option 2']" />
Relevant log output
syntax error, unexpected token "endif", expecting end of file