• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue JS files require <script> tags to format properly this causes a syntax error when included.

Sam Dean

New Pleskian
Current specs/versions
CPU Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz (2 core(s))
Version Plesk Onyx v17.5.3_build1705170317.16 os_CentOS 7
OS CentOS Linux 7.4.1708 (Core)

The code editor treats *.js files as if they were *.html files. So when writing js you get horrible auto tabbing and line breaks and it can't style variables correctly.
upload_2018-4-12_11-10-49.png

if you add "<script> tags it works fine. However including a *.js file with <script> tags will give you a syntax error and the file won't be included.

Adding <script> tags is a temporary fix while editing but is not ideal.

Sam
 
Adding "//<script>" at the start and "//</script>" at the end does resolve this issue.
The code editor see's the "//" as characters as HTML to print out to the display and then the <script> tags properly format the document.
Then when the file is properly interpreted as JS in the browser or else where the "//" comment out the <script> tags.

Sam
 
Back
Top