Server Script Error and Text Not Showing in Text Component

@tpbradley
I’ve got a two-for bug for you today.
I’ve added a minified app js file in Page Settings > Body End and when it runs, get error Unexpected identifier ‘Get’ expected ‘)’ to end a compound expression.

  • It looks like part of script is showing in preview and from what I can deduce, the RWWebServerPageRequiresRefreshing has the Get in it.
    Here’s the project:
    elementsapp://downloadDocument/W80HTPyGHQWx

  • Also when placing a text component first in the page, the beginning text is not displayed in edit window.

Hey @Bill,

I’ve been able to reproduce the first issue with DOMPurify in body end. The issue is that we run the page content through an HTML validator/sanitiser and it’s getting confused by the HTML tags embedded within the DOMPurify source. We should be able to get this fixed up!

I’m not following with this one, I drop a text component into a fresh page and it seems fine here. Can you post a screenshot?

Oh, on the text, this ‘text clipping’ is when my component panel is open on the bottom. Here’s a screenshot:

Yeah I see, that’s quite a small height available to the editor you have there. There’s still a few panels in Elements that can be made too small and oddities like this show up. We need to do another pass over them all.

Hey @Bill,

Great news, the script issue should all be fixed in Today’s Build! Can you give it a try and let me know how it goes?

Cheers

1 Like