Custom CSS and Javascript Code Bug

I’ve identified a persistent bug in the Custom CSS and JavaScript editor boxes that makes pasting or editing code very difficult.

The Issue:

  • Pasting Errors: When selecting all text and pasting new code, the editor often fails to execute or render the code correctly.

  • Backspace Deletion: If you accidentally backspace too many times, the editor seems to “lose” the required first line.

  • Line Alignment: The editor frequently forces the cursor/code to start on the second line. If you attempt to move the code back to the first line, the script/style breaks entirely.

Current (Frustrating) Workaround: The only way to resolve the “broken” state is to completely close the custom code menu and reopen it to force the editor to reset the line structure.

I have attached a video below demonstrating how the cursor behaves and how the code fails to apply once the line structure is disrupted.

Hey @Iokaar thanks for reporting.

I’ve created this issue Custom code editors breaks when we delete the first line and other issues · Issue #5310 · baserow/baserow · GitHub to keep track of it.