Comments (3)
I used your sample code but both the editor and the h1
tag are displayed inline as expected. Could you try installing the latest version and override the root
class of the editor? Check out the theme
example for more details on how to override the style. If you still have a rendering problem please feel free to reopen the issue.
from mui-rte.
Sorry, I gave a bad example.
The issue occurs when the parent div is this:
<div style={{ display: "flex", flexDirection: "row" }}>
and the text being typed has no spaces.
Example: SomeGiantText
pasted 20 with no spaces.
Expected Behaviour
When typing the above text to new-line when the text reaches near the edge of the container.
Actual Behaviour
You can see it overflows with the horizontal scrollbar.
from mui-rte.
I've just opened your CodeSandbox sample, pasted the text more than 20 times as well as input a random long string without spaces and in both cases the result behaviour is as expected. By default the width of the editor is same as its parent and the content is wrapped correctly.
from mui-rte.
Related Issues (20)
- Autocomplete Atomic inserts the atomic component in a new line and then moves the cursor also to a new line
- Inline toolbar with more than 5 buttons covers selected text
- How to change to base64 and show when uploading images
- How do I convert MUI rich text to Google Docs text??
- How to style the editor when it gains focus? HOT 2
- Table in the toolbar
- Reset Editor HOT 1
- How to add an external value at the cursor position in the editor
- Load Existing RTF file to MUIRichTextEditor
- Title on toolbar icon
- How to auto-save notes HOT 1
- Material ui not compatiable (5.11.5) HOT 1
- Doesn't work with React ^18.2.0 HOT 7
- Question on ongoing contribution plans
- Input field is not appeared
- Autocomplete
- URL popup or media pop not editable HOT 1
- Color Picker???
- Link creation
- The mui/styles peer dependency used in this package is deprecated and can't be used for React v18 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-rte.