Skip to content

Commit

Permalink
[fix] Set a default language for the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsabil83 committed Aug 1, 2023
1 parent e34a60b commit d0ad3a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Components/TinyEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class TinyEditor extends Field implements Contracts\CanBeLengthConstrained, Cont

protected string $template;

protected function setUp(): void
{
parent::setUp();

$this->language = app()->getLocale();
}

public function getToolbarSticky(): bool
{
return $this->toolbarSticky;
Expand Down

0 comments on commit d0ad3a4

Please sign in to comment.