- Set left text alignment on all elements when alignment is otherwise

absent
This commit is contained in:
Vlad
2016-04-05 09:52:22 -04:00
parent 7e5e8a4282
commit 8a664aa7f1
2 changed files with 5 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ class StylesHelper {
$text_alignment = isset($block['styles']['block']['textAlign']) ?
strtolower($block['styles']['block']['textAlign']) :
false;
if(!$text_alignment || !in_array($text_alignment, $alignments)) {
if(in_array($text_alignment, $alignments)) {
return $block;
}
$block['styles']['block']['textAlign'] = 'left';