mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 22:59:58 +08:00
Added base RTL support
For #939 - Adds way to check if current language is RTL via config system. - Made TinyMCE default direction be based on current language text direction. - Fixed bullet points to be RTL compatible. - Set page content body to have direction based on content.
This commit is contained in:
@ -72,4 +72,13 @@ class LanguageTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
public function test_rtl_config_set_if_lang_is_rtl()
|
||||
{
|
||||
$this->asEditor();
|
||||
$this->assertFalse(config('app.rtl'), "App RTL config should be false by default");
|
||||
setting()->putUser($this->getEditor(), 'language', 'ar');
|
||||
$this->get('/');
|
||||
$this->assertTrue(config('app.rtl'), "App RTL config should have been set to true by middleware");
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user