Closed pbauer closed 1 year ago
Similar to #20 -- thanks for the specific case
The new results don't seem right. The images are still dropped.
All these do not return a image-block:
<div><img src="image.jpeg" /></div>
<span><img src="image.jpeg" /></span>
<img src="image.jpeg" />
They are only created when they exits within a <p>
The changes span seems to work but I expected it to be dropped.
So instead {'type': 'p', 'children': [{'text': ''}]}
is now is {'type': 'p', 'children': [{'type': 'span', 'children': [{'text': ''}]}]}
Looking into it
On Sun, Mar 5, 2023, 16:08 Philip Bauer @.***> wrote:
Reopened #21 https://github.com/plone/blocks-conversion-tool/issues/21.
— Reply to this email directly, view it on GitHub https://github.com/plone/blocks-conversion-tool/issues/21#event-8668504880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKWXRHHAQZEVPPNVB5MWTW2TQDBANCNFSM6AAAAAAVOXTKV4 . You are receiving this because you modified the open/close state.Message ID: @.*** com>
@pbauer Additional tests implemented on Release 0.4.6 (And on main)
Source is an empty span:
Result:
Problem: On editing it raises
Error: Cannot get the start point in the node at path [0] because it has no start text node.
Source is a span with a image
Result (same as above):
Problem: The image is dropped. On editing it again raises
Error: Cannot get the start point in the node at path [0] because it has no start text node.
Source is a span with image and text
Result
Problem: The image is dropped, the block is valid