Skip to content

Commit

Permalink
Merge pull request #2685 from tvdeyen/fix-tinymce-lang-setting
Browse files Browse the repository at this point in the history
Fix Tinymce language config
  • Loading branch information
tvdeyen authored Jan 11, 2024
2 parents 9764055 + 93ac729 commit bb89883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/alchemy_admin/components/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Tinymce extends AlchemyHTMLElement {
return {
...Alchemy.TinymceDefaults,
...customConfig,
locale: currentLocale(),
language: currentLocale(),
selector: `#${this.editorId}`
}
}
Expand Down
4 changes: 2 additions & 2 deletions spec/javascript/alchemy_admin/components/tinymce.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ describe("alchemy-tinymce", () => {
expect(component.configuration).toBeInstanceOf(Object)
})

it("should have the locale", () => {
expect(component.configuration.locale).toEqual("en")
it("should have the language", () => {
expect(component.configuration.language).toEqual("en")
})

it("should add the attributes to configuration and cast dashes with underscores", () => {
Expand Down

0 comments on commit bb89883

Please sign in to comment.