carbon
carbon copied to clipboard
Weird behavior
I faced a weird behavior when hit the Shift+Enter to get down by one line, and I lost the whole paragraph. Also the one line down is not supported so far ?
I am working on improvement for input currently to fix few weird behaviors including:
- [ ] Slow performance and delay when typing in a formatted text
- [ ] Replacing behind the scene update operations with smaller insert/remove chars operations - this also helps with preserving formatting positions
As for the allow users to insert new lines (as oppose to new paragraphs), @RashaHussein suggested one easy way to implement this is to use a new type for the paragraph that we insert, so when the user click shift+enter
we insert <p class="nomargins"></p>
. This should be relatively easier than handling inserting <br/>
tags. This might be the way to do code blocks as well. I'll file a separate bug for that.
@ahmgeek try to reproduce this and let me know if you found out how.
I like the way that @RashaHussein introduced the solution :clap: well, I'll give it a try tomorrow, it's a little rough out here forgive the frequent postpones. :kiss: