Closed yingying96 closed 1 year ago
Ref: INT-3043
I have spotted a few things that might be causing problems:
Here's an example of wide content in inline mode: https://codesandbox.io/s/inline-with-scroll-xvdt85
If you have the editor permanently disabled in inline mode then I'd suggest just displaying the content without using the editor at all because it will add nothing other than some small protection against scripts which you could get by using any sanitizer. >> Do you have any suggestion on how we can display the content without using the editor? Yes we are planning to use editor for users to add content in other page but for displaying, it will be permanently disabled.
If we turn off inline, may i know if there is a way to enable scrolling beyond the tinymce editor when the editor is set to auto resize? We want the content to auto resize and the users should be able to scroll beyond the editor. However, currently we can't scroll the entire page if our mouse cursor is within the editor. If we move the cursor out of the editor, we are able to scroll up and down on the entire page.
Do you have any suggestion on how we can display the content without using the editor?
https://github.com/cure53/DOMPurify + https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml
If we turn off inline, may i know if there is a way to enable scrolling beyond the tinymce editor when the editor is set to auto resize?
That is a question for the TinyMCE team so ask on the tinymce repository. If you are feeling adventurous you can look at the source code here:
https://github.com/tinymce/tinymce/tree/develop/modules/tinymce/src/plugins/autoresize/main/ts
What is the current behavior?
Currently we have some content (E.g. tables) and it overflows whenever we turn on inline editor mode. If we turn it off, it does not overflow. However, we can't scroll within the editor without the inline mode.
Example as shown below.![image](https://user-images.githubusercontent.com/19566726/200098049-72795eb8-b6b6-4e19-ad2b-3ef77554435e.png)
Code sample
The table content as highlighted below will overflow