Block Custom Panel text Input characters limits are inconstant in block preview and Live views

I have a widget/block that uses a custom panel.
The custom panel has a text input.

I am using the text input to add some code strings.
This all works. But even though I have set the inputs limit to 30,000 chars.
I found that in the blocks preview it works on but in a live site the input will throw an error if the chars exceed 6000.

Unhandled Promise Rejection: Error: Invalid props - length cannot exceed 6000 characters

Firstly it seems odd that the same code string is ok in the preview but not on the live
one of the particular strings is about 7;500 chars.
Is there a way to fix this. I have tried to do it in the Velo code but it still keeps to the limit of 6000?.

Secondly the custom panel are tiny. The text input displays a sing line.
What I would like to be able to do is something similar to the HTML embed ‘Edit Code’ panel.

Maybe using an other widget as the Panel? ( which does not show until an assign action button is clicked)

Does any one know if that is possible.?.

many thanks

This is likely a limitation on our end by design or a bug. I recommend opening a ticket with support to find out more and see if this is a bug or requires a feature request/modification on our end to allow for longer content.

Thanks @amandam ,
I have opened a ticket.

1 Like