Skip to content

Commit 9c2ce25

Browse files
authored
Merge pull request #1863 from magento-trigger/trigger-delivery
MAGETWO-72114 TinyMCE v4.6 as a native WYSIWYG editor MAGETWO-81766 Legacy WYSIWYG in Magento MAGETWO-83256 Prepare PR MAGETWO-51829 Extensible list of WYSIWYG editors available in Magento MAGETWO-42041 Default WYSIWYG toolbar configuration with Magento Media Gallery MAGETWO-42046 Apply new WYSIWYG on CMS Page and Block MAGETWO-84625 Branch stabilization MAGETWO-42158 Variables with WYSIWYG MAGETWO-42156 Widgets in WYSIWYG MAGETWO-83697 Add media gallery into WYSIWYG content on CMS page MAGETWO-84888 Branch stabilization MAGETWO-85064 Migrate over incompatible WYSIWYG API interfaces to adapter MAGETWO-47309 Apply new WYSIWYG in Newsletter MAGETWO-72363 Recently uploaded image is selected in Magento Media Gallery MAGETWO-58104 If custom text area attribute is created, you can't export bundle product. - for 2.2 MAGETWO-81799 Media Gallery Image URL is not displayed correctly in API response
2 parents 9b50b19 + 01b1d64 commit 9c2ce25

File tree

626 files changed

+7517
-1652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

626 files changed

+7517
-1652
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ atlassian*
3434
/.php_cs.cache
3535
/grunt-config.json
3636
/dev/tools/grunt/configs/local-themes.js
37-
3837
/pub/media/*.*
3938
!/pub/media/.htaccess
4039
/pub/media/attribute/*

app/code/Magento/Backend/view/adminhtml/layout/editor.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010
<link src="Magento_Backend::js/bootstrap/editor.js"/>
1111
<css src="prototype/windows/themes/default.css"/>
1212
</head>
13-
<body/>
1413
</page>

app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
<?php if ($block->getButtonsHtml('header')): ?>
1313
<div class="page-form-actions" <?= /* @escapeNotVerified */ $block->getUiId('content-header') ?>><?= $block->getButtonsHtml('header') ?></div>
1414
<?php endif; ?>
15+
<?php if ($block->getButtonsHtml('toolbar')): ?>
16+
<div class="page-main-actions">
17+
<div class="page-actions">
18+
<div class="page-actions-buttons">
19+
<?= $block->getButtonsHtml('toolbar') ?>
20+
</div>
21+
</div>
22+
</div>
23+
<?php endif; ?>
1524
<?= $block->getFormHtml() ?>
1625
<?php if ($block->hasFooterButtons()): ?>
1726
<div class="content-footer">

app/code/Magento/Backend/view/adminhtml/templates/widget/form/element.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
<label for="<?= $element->getHtmlId() ?>"><?= /* @escapeNotVerified */ $element->getLabel() ?>:</label>
6363
<script>
6464
require([
65-
'tinymce'
65+
'tinymceDeprecated'
6666
], function(tinyMCE){
67+
6768
tinyMCE.init({
6869
mode : "exact",
6970
theme : "advanced",

app/code/Magento/Catalog/Block/Adminhtml/Helper/Form/Wysiwyg.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,7 @@ public function getAfterElementHtml()
102102
var config = $config,
103103
editor;
104104
105-
jQuery.extend(config, {
106-
settings: {
107-
theme_advanced_buttons1 : 'bold,italic,|,justifyleft,justifycenter,justifyright,|,' +
108-
'fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,bullist,numlist,|,code',
109-
theme_advanced_buttons2: null,
110-
theme_advanced_buttons3: null,
111-
theme_advanced_buttons4: null,
112-
theme_advanced_statusbar_location: null
113-
},
114-
files_browser_window_url: false
115-
});
116-
117-
editor = new tinyMceWysiwygSetup(
105+
editor = new wysiwygSetup(
118106
'{$this->getHtmlId()}',
119107
config
120108
);

app/code/Magento/Catalog/Controller/Adminhtml/Category/Add.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ public function execute()
7171
$resultPage->getConfig()->getTitle()->prepend(__('New Category'));
7272
$resultPage->addBreadcrumb(__('Manage Catalog Categories'), __('Manage Categories'));
7373

74-
$block = $resultPage->getLayout()->getBlock('catalog.wysiwyg.js');
75-
if ($block) {
76-
$block->setStoreId(0);
77-
}
78-
7974
return $resultPage;
8075
}
8176
}

app/code/Magento/Catalog/Controller/Adminhtml/Category/Edit.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ public function execute()
105105
$resultPage->getConfig()->getTitle()->prepend($resultPageTitle);
106106
$resultPage->addBreadcrumb(__('Manage Catalog Categories'), __('Manage Categories'));
107107

108-
$block = $resultPage->getLayout()->getBlock('catalog.wysiwyg.js');
109-
if ($block) {
110-
$block->setStoreId($storeId);
111-
}
112-
113108
return $resultPage;
114109
}
115110

app/code/Magento/Catalog/Controller/Adminhtml/Product/Edit.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ public function execute()
8484
);
8585
}
8686

87-
$block = $resultPage->getLayout()->getBlock('catalog.wysiwyg.js');
88-
if ($block) {
89-
$block->setStoreId($product->getStoreId());
90-
}
91-
9287
return $resultPage;
9388
}
9489
}

app/code/Magento/Catalog/Controller/Adminhtml/Product/NewAction.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ public function execute()
7373
$resultPage->getConfig()->getTitle()->prepend(__('New Product'));
7474
}
7575

76-
$block = $resultPage->getLayout()->getBlock('catalog.wysiwyg.js');
77-
if ($block) {
78-
$block->setStoreId($product->getStoreId());
79-
}
80-
8176
return $resultPage;
8277
}
8378
}

app/code/Magento/Catalog/Helper/Data.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@ public function isUsingStaticUrlsAllowed()
435435
{
436436
return $this->scopeConfig->isSetFlag(
437437
self::CONFIG_USE_STATIC_URLS,
438-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
439-
$this->_storeId
438+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
440439
);
441440
}
442441

0 commit comments

Comments
 (0)