Skip to content

Commit

Permalink
Fixed issue when setting WYSIWYG Editor for specific page - then it m…
Browse files Browse the repository at this point in the history
…issed
  • Loading branch information
magefan authored Jul 17, 2020
1 parent b1591c5 commit 2910b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugin/Magento/Ui/Component/Wysiwyg/ConfigPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private function isEnabledOverided($type)
private function isEnabled($type)
{
$wysiwygState = $this->scopeConfig->getValue(
'mfwysiwygadvanced/general/cms_' . $type . '_enabled',
'mfwysiwygadvanced/general/' . $type . '_enabled',
ScopeInterface::SCOPE_STORE
);
return in_array($wysiwygState, [\Magento\Cms\Model\Wysiwyg\Config::WYSIWYG_ENABLED, \Magento\Cms\Model\Wysiwyg\Config::WYSIWYG_HIDDEN]);
Expand All @@ -180,7 +180,7 @@ private function isEnabled($type)
private function isHidden($type)
{
$status = $this->scopeConfig->getValue(
'mfwysiwygadvanced/general/cms_' . $type . '_enabled',
'mfwysiwygadvanced/general/' . $type . '_enabled',
ScopeInterface::SCOPE_STORE
);
return $status == \Magento\Cms\Model\Wysiwyg\Config::WYSIWYG_HIDDEN;
Expand Down

0 comments on commit 2910b1d

Please sign in to comment.