carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Weird behavior

Open ahmgeek opened this issue 9 years ago • 3 comments

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 ?

ahmgeek avatar Jan 30 '16 22:01 ahmgeek

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.

mkhatib avatar Feb 06 '16 07:02 mkhatib

@ahmgeek try to reproduce this and let me know if you found out how.

mkhatib avatar Feb 06 '16 08:02 mkhatib

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:

ahmgeek avatar Feb 06 '16 20:02 ahmgeek