Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some elements are not displaying correctly in textarea #496

Closed
ezeamin opened this issue Mar 28, 2023 · 6 comments
Closed

Some elements are not displaying correctly in textarea #496

ezeamin opened this issue Mar 28, 2023 · 6 comments

Comments

@ezeamin
Copy link

ezeamin commented Mar 28, 2023

image

Some elements like image, text in bold, italics, are not displaying in the textarea, unless those texts are selected.

image

image

I'm only using rehype-sanitize as plugin, but the error existed since i first installed the library. The mentioned classname does nothing but animate the component.

@jaywcjlove
Copy link
Member

If you can provide me with an example through codesandbox.io, I can help you troubleshoot. It may be due to a style conflict. @ezeamin

@ezeamin
Copy link
Author

ezeamin commented Mar 30, 2023

Sure @jaywcjlove ! Here it is.

CodeSandbox

The problem is when setting a display: flex in a container above the editor. In this case, i use it over all the page content (set in App.tsx with the class "content") to make sure the footer stays on the lower end of the screen. I included the styling library I use (MUI / Emotion) to make sure you get the whole context in which I'm working in.

I really appreciate your time.

You can see the error when adding an image from the toolbar, or setting bold font.

@jaywcjlove
Copy link
Member

image

@ezeamin

@ezeamin
Copy link
Author

ezeamin commented Apr 3, 2023

@jaywcjlove check again please. The error was due a visibility config

@jaywcjlove
Copy link
Member

image

style conflict @ezeamin

@ezeamin
Copy link
Author

ezeamin commented Apr 3, 2023

Thanks for reviewing the issue. Though, in my opinion, that class name should be changed to something like "editor-content" or anything more specific to the editor itself. Otherwise, more issues like this one will appear.

Have a great day!

@ezeamin ezeamin closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants