Skip to content

Commit b1335dc

Browse files
committed
Merge remote-tracking branch 'origin/MC-3902-Add-line-height' into cms-team-1-delivery
2 parents d2cc80d + 6d1d04a commit b1335dc

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

app/code/Magento/PageBuilder/Model/Wysiwyg/DefaultConfigProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ public function getConfig(\Magento\Framework\DataObject $config): \Magento\Frame
3838
{
3939
$config->addData([
4040
'tinymce4' => [
41-
'toolbar' => 'undo redo | styleselect | fontsizeselect | forecolor backcolor | bold italic underline' .
42-
' | alignleft aligncenter alignright | numlist bullist | link image table charmap',
41+
'toolbar' => 'undo redo | styleselect | fontsizeselect | lineheightselect | forecolor backcolor ' .
42+
'| bold italic underline | alignleft aligncenter alignright | numlist bullist ' .
43+
'| link image table charmap',
4344

4445
'plugins' => implode(
4546
' ',
@@ -59,7 +60,8 @@ public function getConfig(\Magento\Framework\DataObject $config): \Magento\Frame
5960
'table',
6061
'textcolor',
6162
'image',
62-
'colorpicker'
63+
'colorpicker',
64+
'lineheight'
6365
]
6466
),
6567
'content_css' => [

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderTextSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
<element name="undo" type="button" selector="div[aria-label='Undo']"/>
114114
<element name="redo" type="button" selector="div[aria-label='Redo']"/>
115115
<element name="fontSize" type="button" selector="div[aria-label='Font Sizes']"/>
116+
<element name="lineHeight" type="button" selector="div[aria-label='Line Height']"/>
116117
<element name="textColor" type="button" selector="div[aria-label='Text color']"/>
117118
<element name="backgroundColor" type="button" selector="div[aria-label='Background color']"/>
118119
<element name="formatSelector" type="button" selector="//span[text()='Formats']"/>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderTextTest.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@
809809
<seeElement selector="{{WYSIWYGOnPageBuilder.undo}}" stepKey="seeUndo"/>
810810
<seeElement selector="{{WYSIWYGOnPageBuilder.redo}}" stepKey="seeRedo"/>
811811
<seeElement selector="{{WYSIWYGOnPageBuilder.fontSize}}" stepKey="seeFontsize"/>
812+
<seeElement selector="{{WYSIWYGOnPageBuilder.lineHeight}}" stepKey="seeLineHeight"/>
812813
<seeElement selector="{{WYSIWYGOnPageBuilder.textColor}}" stepKey="seeTextColor"/>
813814
<seeElement selector="{{WYSIWYGOnPageBuilder.backgroundColor}}" stepKey="seeBackgroundColor"/>
814815
<!--Verify FontSize-->
@@ -834,6 +835,29 @@
834835
<see userInput="56px" stepKey="see56px" />
835836
<see userInput="64px" stepKey="see64px" />
836837
<see userInput="72px" stepKey="see72px" />
838+
<!--Verify LineHeight-->
839+
<comment userInput="Verify LineHeight" stepKey="commentVerifyLineHeight"/>
840+
<click selector="{{WYSIWYGOnPageBuilder.lineHeight}}" stepKey="clickOnLineHeight"/>
841+
<see userInput="10px" stepKey="seeLineHeight10px" />
842+
<see userInput="12px" stepKey="seeLineHeight12px" />
843+
<see userInput="14px" stepKey="seeLineHeight14px" />
844+
<see userInput="16px" stepKey="seeLineHeight16px" />
845+
<see userInput="18px" stepKey="seeLineHeight18px" />
846+
<see userInput="20px" stepKey="seeLineHeight20px" />
847+
<see userInput="24px" stepKey="seeLineHeight24px" />
848+
<see userInput="26px" stepKey="seeLineHeight26px" />
849+
<see userInput="28px" stepKey="seeLineHeight28px" />
850+
<see userInput="32px" stepKey="seeLineHeight32px" />
851+
<see userInput="34px" stepKey="seeLineHeight34px" />
852+
<see userInput="36px" stepKey="seeLineHeight36px" />
853+
<see userInput="38px" stepKey="seeLineHeight38px" />
854+
<see userInput="40px" stepKey="seeLineHeight40px" />
855+
<see userInput="42px" stepKey="seeLineHeight42px" />
856+
<see userInput="48px" stepKey="seeLineHeight48px" />
857+
<see userInput="52px" stepKey="seeLineHeight52px" />
858+
<see userInput="56px" stepKey="seeLineHeight56px" />
859+
<see userInput="64px" stepKey="seeLineHeight64px" />
860+
<see userInput="72px" stepKey="seeLineHeight72px" />
837861
<!--Verify FontStyle on preview-->
838862
<comment userInput="Verify FontStyle on preview" stepKey="commentVerifyFontsizeOnPreview"/>
839863
<click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea"/>

app/code/Magento/PageBuilder/etc/adminhtml/di.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<argument name="additionalSettings" xsi:type="array">
5555
<item name="fixed_toolbar_container" xsi:type="string">.pagebuilder-content-type</item>
5656
<item name="fontsize_formats" xsi:type="string">10px 12px 14px 16px 18px 20px 24px 26px 28px 32px 34px 36px 38px 40px 42px 48px 52px 56px 64px 72px</item>
57+
<item name="lineheight_formats" xsi:type="string">10px 12px 14px 16px 18px 20px 24px 26px 28px 32px 34px 36px 38px 40px 42px 48px 52px 56px 64px 72px</item>
5758
<item name="style_formats" xsi:type="array">
5859
<item name="paragraph" xsi:type="array">
5960
<item name="title" xsi:type="string">Paragraph</item>

0 commit comments

Comments
 (0)