Skip to content

Commit

Permalink
Merge pull request #9589 from alphagov/monaco-for-new-landing-pages
Browse files Browse the repository at this point in the history
Enable monaco editor for new landing pages
  • Loading branch information
richardTowers authored Nov 6, 2024
2 parents 3bff7dd + 80a1109 commit e43c7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/components/yaml-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ window.GOVUK.Modules = window.GOVUK.Modules || {}
}
}
// NOTE: This is currently very specifically overriding the body field
// in the edit edition form. If we actually wanted a YamlEditor,
// in the edition form. If we actually wanted a YamlEditor,
// we would probably want it to be more general than this.
//
// This should just be temporary code for the landing pages, while
// we work out a CMS though. So for now it's okay to be specific.
const form = this.module.querySelector('form#edit_edition')
const form = this.module.querySelector('form.edition-form')
const outerContainer = form?.querySelector(
'.app-c-govspeak-editor:has(#edition_body)'
)
Expand Down

0 comments on commit e43c7fb

Please sign in to comment.