http://slatejs.org/#/rich-text?
Triple click to select the first paragraph. Click header 1 button. Note that the second paragraph became H1 as well.
Hey @AlexeiAndreev thanks for reporting this.
I agree it's something that should be fixed. It looks like Draft handles this by fixing these types of selections before using setBlock. If anyone is interested in helping, I'd be open to a pull request that does similar!
Could we re-open this issue, as it's still happening with applying list styles (ordered, unordered) in the same rich text editor example.
http://slatejs.org/#/rich-text
Triple click to select the first paragraph. Click ordered/unordered list button. See, that the previous block gets added inside the list element.
Most helpful comment
Could we re-open this issue, as it's still happening with applying list styles (ordered, unordered) in the same rich text editor example.
http://slatejs.org/#/rich-text
Triple click to select the first paragraph. Click ordered/unordered list button. See, that the previous block gets added inside the list element.