Element-web: With markdown off, RTE requires Enter key 3 times to send a code block

Created on 28 Aug 2017  路  5Comments  路  Source: vector-im/element-web

  1. Press the code block button
  2. Add some text
  3. Press enter (note the second block it creates)
  4. Press enter again (clears the block)
  5. Press enter once more - this sends the message with a blank line at the end
bug p2 minor rte uux

Most helpful comment

Interestingly gitter and slack have each adopted quite a different approach to multiline messages - gitter has a 'composer mode' (essentially something that stops enter from submitting until you disable it) and slack has a 'snippet' editor - a whole separate modal editor for editing multi-line code blocks.

All 5 comments

This is pretty much as intended. What would expect to happen differently, @turt2live?

1 less enter, also not 2 code blocks.

image

That should probably just be a continuation, instead of a whole new block.

Interestingly gitter and slack have each adopted quite a different approach to multiline messages - gitter has a 'composer mode' (essentially something that stops enter from submitting until you disable it) and slack has a 'snippet' editor - a whole separate modal editor for editing multi-line code blocks.

I would prefer Enter to always send the message and Shift+Enter to insert a new line. It's quite a common pattern in desktop messengers I used before.

fixed in matrix-org/matrix-react-sdk#1890

Was this page helpful?
0 / 5 - 0 ratings