react-rte icon indicating copy to clipboard operation
react-rte copied to clipboard

Code Block not working as expected

Open CharlesIrvineKC opened this issue 9 years ago • 2 comments

Inserting a code block isn't working as expected. To illustrate, go to:

  1. got to: https://react-rte.org/demo
  2. pick "Code Block" from the styles dropdown.
  3. try to paste some code into the code block.

For me this results a bunch of paragraph html elements.

See attached screen shot.

screen shot 2017-06-30 at 5 49 41 pm

CharlesIrvineKC avatar Jun 30 '17 22:06 CharlesIrvineKC

It doesn't look like codeblocks are supported. Only inline code

chiedo avatar Jul 13 '17 15:07 chiedo

Can verify that "code blocks" just go line by line and create inline code, which does not seem to be the behavior one would expect for code block since it exists separately from the inline code style button. Seems like instead it should wrap in ```s.

mc-funk avatar Aug 24 '17 05:08 mc-funk