Closed Saul-Mirone closed 4 months ago
Technically, this is not a bug and may not be resolved in the short term. In order to satisfy the product requirements, the image block can only be placed outside the surface for now. We will discuss possible solutions in the next iteration, though we might stick to the current approach.
For now, surface's children like
image block
is rendered by portal. The portal will render the block inEdgelessPageBlock
, it will be something like:The
view
module will calculate the block's position in dom tree and get thepath
for it. So thepath
will bepageBlock -> imageBlock
.However, in the block tree in
Yjs
, the structure will be something like:There'll be a mismatch between model and view.