Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Reported in #1204786: [D6] Bug in custom JavaScript configuration - editor not showing in some cases by GreatStarMaster:
Му custom javascript configuration is
config.extraCss = "body {background: #FFFFFF; background-image: none;}";
Editor not showing. Perhaps it is because of the semicolon in the style.
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedChanges commited to GIT.
Pls update to last DEV version.
Greetings
Comment #3
mkesicki CreditAttribution: mkesicki commentedComment #4
anrikun CreditAttribution: anrikun commentedI'm reopening this issue:
In 6.x-1.11, semicolons seem required in custom javascript configuration.
So current description is incorrect.
Comment #5
mkesicki CreditAttribution: mkesicki commented@anrikun please ,
write steps to reproduce your issue and write in more details what problem do you have?
Comment #6
anrikun CreditAttribution: anrikun commentedSorry, I thought I was clear enough :-)
Description for field Custom javascript configuration currently displays the following as examples:
Respecting these examples, I have typed:
config.bodyClass = 'myclass1 myclass2'
But it didn't worked (no error but my bodyClass setting was ignored), so I tried to add a semicolon:
config.bodyClass = 'myclass1 myclass2';
And it worked.
So I guess semicolons are needed here, and that examples should be changed into:
Comment #7
mkesicki CreditAttribution: mkesicki commented@anrikun ,
thank you for noticing this.
We try fix this as soon as possible.
Comment #8
mkesicki CreditAttribution: mkesicki commentedI committed changes to GIT.
Comment #9
mkesicki CreditAttribution: mkesicki commentedComment #10
anrikun CreditAttribution: anrikun commentedThanks for this quick commit!
Comment #11
mkesicki CreditAttribution: mkesicki commented