Skip to content

Commit 7f466f5

Browse files
AC-14602:Migrate from TinyMCE to Hugerte.org | MFTF fixes
1 parent 5690502 commit 7f466f5

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/VerifyTinyMCEIsNativeWYSIWYGOnCatalogTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE" />
3232
<seeElement selector="{{TinyMCESection.ShowHideBtn}}" stepKey="seeShowHideBtn" />
3333
<actionGroup ref="VerifyTinyMCEActionGroup" stepKey="verifyTinyMCE"/>
34-
<executeJS function="tinyMCE.get('category_form_description').setContent('Hello World!');" stepKey="executeJSFillContent"/>
34+
<executeJS function="hugerte.get('category_form_description').setContent('Hello World!');" stepKey="executeJSFillContent"/>
3535
<click selector="{{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn" />
3636
<waitForElementVisible selector="{{TinyMCESection.InsertImageBtn}}" stepKey="waitForInsertImage" />
3737
<seeElement selector="{{TinyMCESection.InsertImageBtn}}" stepKey="insertImage"/>

app/code/Magento/Catalog/Test/Mftf/Test/VerifyTinyMCEIsNativeWYSIWYGOnProductTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
<waitForElementVisible selector="{{ProductDescriptionWysiwygSection.form}} {{TinyMCESection.TinyMCE}}" stepKey="waitForDescription" />
3838
<seeElement selector="{{ProductDescriptionWysiwygSection.form}} {{TinyMCESection.TinyMCE}}" stepKey="TinyMCEDescription" />
3939
<click selector="{{ProductDescriptionWysiwygSection.form}} {{TinyMCESection.EditArea}}" stepKey="focusProductDescriptionWysiwyg"/>
40-
<executeJS function="tinyMCE.get('product_form_description').setContent('Hello World!');" stepKey="executeJSFillContent1"/>
40+
<executeJS function="hugerte.get('product_form_description').setContent('Hello World!');" stepKey="executeJSFillContent1"/>
4141
<waitForElementVisible selector="{{ProductShortDescriptionWysiwygSection.form}} {{TinyMCESection.TinyMCE}}" stepKey="waitForShortDescription" />
4242
<seeElement selector="{{ProductShortDescriptionWysiwygSection.form}} {{TinyMCESection.TinyMCE}}" stepKey="TinyMCEShortDescription" />
4343
<click selector="{{ProductShortDescriptionWysiwygSection.form}} {{TinyMCESection.EditArea}}" stepKey="focusProductShortDescriptionWysiwyg"/>
44-
<executeJS function="tinyMCE.get('product_form_short_description').setContent('Hello World! Short Content');" stepKey="executeJSFillContent2"/>
44+
<executeJS function="hugerte.get('product_form_short_description').setContent('Hello World! Short Content');" stepKey="executeJSFillContent2"/>
4545
<scrollTo selector="{{ProductDescriptionWysiwygSection.form}} {{TinyMCESection.ShowHideBtn}}" y="-150" x="0" stepKey="scrollToDesShowHideBtn1" />
4646
<click selector="{{ProductDescriptionWysiwygSection.form}} {{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn1" />
4747
<waitForElementVisible selector="{{ProductDescriptionWysiwygSection.form}} {{TinyMCESection.InsertImageBtn}}" stepKey="waitForInsertImage1" />

app/code/Magento/Cms/Test/Mftf/Test/VerifyTinyMCEIsNativeWYSIWYGOnBlockTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE" />
3333
<actionGroup ref="VerifyTinyMCEActionGroup" stepKey="verifyTinyMCE"/>
3434
<actionGroup ref="VerifyMagentoEntityActionGroup" stepKey="verifyMagentoEntities"/>
35-
<executeJS function="tinyMCE.get('cms_block_form_content').setContent('Hello Block Page!');" stepKey="executeJSFillContent"/>
35+
<executeJS function="hugerte.get('cms_block_form_content').setContent('Hello Block Page!');" stepKey="executeJSFillContent"/>
3636
<click selector="{{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn1" />
3737
<waitForElementVisible selector="{{TinyMCESection.InsertWidgetBtn}}" stepKey="waitForInsertWidget" />
3838
<see selector="{{TinyMCESection.InsertImageBtn}}" userInput="Insert Image..." stepKey="assertInf17"/>

app/code/Magento/Cms/Test/Mftf/Test/VerifyTinyMCEIsNativeWYSIWYGOnCMSPageTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE" />
3333
<actionGroup ref="VerifyTinyMCEActionGroup" stepKey="verifyTinyMCE"/>
3434
<actionGroup ref="VerifyMagentoEntityActionGroup" stepKey="verifyMagentoEntities"/>
35-
<executeJS function="tinyMCE.get('cms_page_form_content').setContent('Hello World!');" stepKey="executeJSFillContent"/>
35+
<executeJS function="hugerte.get('cms_page_form_content').setContent('Hello World!');" stepKey="executeJSFillContent"/>
3636
<click selector="{{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn" />
3737
<waitForElementVisible selector="{{TinyMCESection.InsertWidgetBtn}}" stepKey="waitForInsertWidget" />
3838
<see selector="{{TinyMCESection.InsertImageBtn}}" userInput="Insert Image..." stepKey="assertInf17"/>

app/code/Magento/Email/view/adminhtml/templates/template/edit.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ require([
171171
$('preview_type').value = {$templateType};
172172
}
173173
174-
if (typeof tinyMCE == 'undefined' || !tinyMCE.get('template_text')) {
174+
if (typeof tinyMCE == 'undefined' || !hugerte.get('template_text')) {
175175
$('preview_text').value = $('template_text').value;
176176
} else {
177-
$('preview_text').value = tinyMCE.get('template_text').getHTML();
177+
$('preview_text').value = hugerte.get('template_text').getHTML();
178178
}
179179
180180
if ($('template_styles') != undefined) {

app/code/Magento/Newsletter/Test/Mftf/Test/AdminAddVariableToWYSIWYGNewsletterTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<waitForPageLoad time="10" stepKey="waitForPageLoad21"/>
4343
<conditionalClick selector="#toggletext" dependentSelector=".tox-hugerte" visible="false" stepKey="clickBtnIfTinyMCEHidden"/>
4444
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE"/>
45-
<executeJS function="tinyMCE.get('text').setContent('Hello World From Newsletter Template!');" stepKey="executeJSFillContent"/>
45+
<executeJS function="hugerte.get('text').setContent('Hello World From Newsletter Template!');" stepKey="executeJSFillContent"/>
4646
<seeElement selector="{{TinyMCESection.InsertVariableIcon}}" stepKey="seeInsertVariableIcon" />
4747
<click selector="{{TinyMCESection.InsertVariableIcon}}" stepKey="clickInsertVariableIcon1" />
4848
<waitForText userInput="Insert Variable" stepKey="waitForSlideOutOpen"/>

app/code/Magento/Newsletter/Test/Mftf/Test/VerifyTinyMCEIsNativeWYSIWYGOnNewsletterTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<waitForPageLoad stepKey="waitForTinyMce"/>
3434
<actionGroup ref="VerifyTinyMCEActionGroup" stepKey="verifyTinyMCE"/>
3535
<actionGroup ref="VerifyMagentoEntityActionGroup" stepKey="verifyMagentoEntities"/>
36-
<executeJS function="tinyMCE.get('text').setContent('Hello World From Newsletter Template!');" stepKey="executeJSFillContent"/>
36+
<executeJS function="hugerte.get('text').setContent('Hello World From Newsletter Template!');" stepKey="executeJSFillContent"/>
3737
<click selector="{{TinyMCESection.ShowHideBtn}}" stepKey="clickShowHideBtn2" />
3838
<waitForElementVisible selector="{{TinyMCESection.InsertWidgetBtn}}" stepKey="waitForInsertWidget" />
3939
<see selector="{{TinyMCESection.InsertImageBtn}}" userInput="Insert Image..." stepKey="assertInf17"/>

lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymceAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ define([
335335
* @param {String} id
336336
*/
337337
get: function (id) {
338-
return tinyMCE.get(id);
338+
return hugerte.get(id);
339339
},
340340

341341
/**

0 commit comments

Comments
 (0)