Open wesleybl opened 1 week ago
@tiberiuichim any tips on how to make this work if the previous block is a text block?
In fact, insertBlock
is not called if the previous block is an empty text block. If the text block is not empty, insertBlock
is called.
The difference between adding a block after any block and after a empty text block is here:
When the previous block is an empty text block, if returns false and then onChangeBlock
is called. In other situations onSelectBlock
is called.
Maybe _applyBlockInitialValue
has to be called before calling onChangeBlock
.
The id passed there should be newBlockId and not id.
You are correct here
Describe the bug initialValue block setting doesn't work.
To Reproduce Steps to reproduce the behavior:
initialValue
setting. For example: