You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
> {note} It is important to not use arrow functions for the toolbar handlers, as they will not have access to the `this` context of Quill.
194
+
> For the example above, it is important to reference the quill instance via `this.quill`, otherwise you may get unexpected results when
195
+
> inserting text.
196
+
194
197
This example will provide a custom dropdown menu with two options, and when each one is clicked on, it will insert the text of the option into the editor at the current cursor position of the user. Your work is not done yet, however. Quill editor uses CSS styling to render the text into the toolbar buttons, so you will need to add some styles to your stylesheet:
195
198
196
199
```css
@@ -216,7 +219,7 @@ slot to do this. The config slot is inside a JavaScript function that returns an
216
219
217
220
| variable | description |
218
221
| --- | --- |
219
-
|`instance`| The Alpine data instance for the quill component. To access to the quill editor instance, you can do so via `instance.__quill`|
222
+
|`instance`| The Alpine data instance for the quill component |
220
223
|`quillOptions`| An object containing the options generated by the component |
221
224
222
225
For a complete list of quill configuration options, see [Quill Configuration](https://quilljs.com/docs/configuration/).
0 commit comments