Open rajraii opened 1 month ago
You're using the selector
prop, which is purposely overridden and won't be used, see https://www.tiny.cloud/docs/tinymce/latest/react-ref/#init.
Apart from that, could you please fork our code sandbox to replicate your issue. Or provide a codepen or something similar. Then we can help you further.
@danoaky-tiny In this demo, I have tried to replicate my behavior, Though I could not make the TinyMCE resizable according to the size of the content in it. If you click inside the editor, the editor toolbar is sticky. But when you scroll outside of Editor then the behavior changes to Static
Tinymce Tollbar is not sticky when parent has a Overflow
styling in it.
I am having the same issue @rajraii
Did you manage to make it work?
What is the current behavior? Tinymce React Toolbar not working properly There are following cases here:
Toolbar only gets sticked to top when there is a click event inside content Reproduced this behaviour after pressing enter inside content![image](https://github.com/tinymce/tinymce/assets/71391631/eccb691b-a175-44e4-920d-dbeda1f29f87)
It will be sticked to top of the page even when user scrolls out of the content area![image](https://github.com/tinymce/tinymce/assets/71391631/7db1b254-e9bd-480c-b4ba-3119117ec59c)
Selector option in init json is not accepting a string value![image](https://github.com/tinymce/tinymce-react/assets/71391631/2970108a-a603-4d86-a9b2-2e4c7c16ec47)
NOTE:
I was able to identify the issue: The css in parent element consist of
overflow: auto
. Need to rectify itWhat is the expected behavior? Should have stick only to the top of content context (not at page) when users scrolls on page, Clicking or event should have not been the trigger here.
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or
tinymce-react
?