draft-js-markdown-plugin icon indicating copy to clipboard operation
draft-js-markdown-plugin copied to clipboard

content is not removable if the last block is code-block

Open andrewfan opened this issue 7 years ago • 3 comments

Can not remove content after selecting everything (cmd +a) when the last block is code-block

https://www.dropbox.com/s/mdvn2pqa52yqufl/Screenshot%202018-05-21%2015.35.40.png?dl=0

andrewfan avatar May 21 '18 12:05 andrewfan

This is a duplicate of #66 I think

mxstbr avatar May 21 '18 12:05 mxstbr

@mxstbr I don't think that it is the duplicate of https://github.com/withspectrum/draft-js-markdown-plugin/issues/66. (I left comment there and I think that it should not be an issue any more)

Hiting backspace does not trigger click event, so onClickOutside https://github.com/withspectrum/draft-js-markdown-plugin/blob/master/src/components/Code/index.js#L78 is not even called

andrewfan avatar May 21 '18 13:05 andrewfan

Oh sorry, that's true, good point. Reopening!

mxstbr avatar May 22 '18 08:05 mxstbr