From 2910b1df6a9770f08588d44b20ece0372874e848 Mon Sep 17 00:00:00 2001 From: Magefan Date: Fri, 17 Jul 2020 10:28:22 +0300 Subject: [PATCH] Fixed issue when setting WYSIWYG Editor for specific page - then it missed --- Plugin/Magento/Ui/Component/Wysiwyg/ConfigPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugin/Magento/Ui/Component/Wysiwyg/ConfigPlugin.php b/Plugin/Magento/Ui/Component/Wysiwyg/ConfigPlugin.php index dfa19c5..3f988a6 100644 --- a/Plugin/Magento/Ui/Component/Wysiwyg/ConfigPlugin.php +++ b/Plugin/Magento/Ui/Component/Wysiwyg/ConfigPlugin.php @@ -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]); @@ -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;