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
Hello! I'm working on a project where I'm using the QuillEditor widget from the Flutter Quill package. I would like to customize the context menu that appears when the user selects text in the editor. I noticed that the RawEditor widget has a property called contextMenuBuilder which seems to be what I need, but I couldn't find a way to pass my custom context menu builder from QuillEditor to RawEditor.
Here's a snippet of the code from the QuillEditor widget where contextMenuBuilder is being used internally:
I tried modifying the QuillEditor code inside the Flutter Quill package within my project to accept a custom context menu builder by passing a function like this:
However, this gave me an error saying "Undefined class 'RawEditorState'".
I believe that RawEditorState is what I need to use as a parameter in my custom contextMenuBuilder function, but I'm not sure how to properly access it or if there's a better approach to customizing the context menu.
Has anyone managed to customize the context menu in QuillEditor? I would appreciate any guidance on how to achieve this or if there's a different recommended approach for customizing the context menu. Thank you in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I'm working on a project where I'm using the QuillEditor widget from the Flutter Quill package. I would like to customize the context menu that appears when the user selects text in the editor. I noticed that the RawEditor widget has a property called contextMenuBuilder which seems to be what I need, but I couldn't find a way to pass my custom context menu builder from QuillEditor to RawEditor.
Here's a snippet of the code from the QuillEditor widget where contextMenuBuilder is being used internally:
I tried modifying the QuillEditor code inside the Flutter Quill package within my project to accept a custom context menu builder by passing a function like this:
However, this gave me an error saying "Undefined class 'RawEditorState'".
I believe that RawEditorState is what I need to use as a parameter in my custom contextMenuBuilder function, but I'm not sure how to properly access it or if there's a better approach to customizing the context menu.
Has anyone managed to customize the context menu in QuillEditor? I would appreciate any guidance on how to achieve this or if there's a different recommended approach for customizing the context menu. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions