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
Hi, I have a problem with some of toolbar buttons like undo, redo and Bold.
The problem with undo/redo is that after saving the content and close the editor or going back to the previous site and coming back to the editor site the buttons (undo/redo) stay inactive even if I do changes inside the content. (I tried to add a Button just to use the function (setState(())) and they worked fine till the history is empty, but if the history is not empty and has something in it then I have to click this button again to use undo/redo) actually I did that like this : QuillToolbarCustomButton(controller: _controller, options: QuillToolbarCustomButtonOptions( onPressed: _controller.hasUndo ? () { _controller.undo(); setState((){}); }: null, iconTheme: _iconTheme, ),)
And the problem with bold button is that if I click it it will be active and if I select a text that is not in bold while the button is active I cannot "bold" this text.
How can I solve these problems?
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
-
Hi, I have a problem with some of toolbar buttons like undo, redo and Bold.
The problem with undo/redo is that after saving the content and close the editor or going back to the previous site and coming back to the editor site the buttons (undo/redo) stay inactive even if I do changes inside the content. (I tried to add a Button just to use the function (setState(())) and they worked fine till the history is empty, but if the history is not empty and has something in it then I have to click this button again to use undo/redo) actually I did that like this :
QuillToolbarCustomButton(controller: _controller, options: QuillToolbarCustomButtonOptions( onPressed: _controller.hasUndo ? () { _controller.undo(); setState((){}); }: null, iconTheme: _iconTheme, ),)
And the problem with bold button is that if I click it it will be active and if I select a text that is not in bold while the button is active I cannot "bold" this text.
How can I solve these problems?
I appreciate any response.
The video below shows the problems.
Screen_recording_20240324_181122.mp4
Beta Was this translation helpful? Give feedback.
All reactions