Thank you. It works. I noticed that the custom editor works correctly when you resize the viewport after opening it:
And when I click save the data is successfully saved:
So, the component works, but there seems to be an issue with either canvas positioning on initialization or the dimensions.