@@ -20,6 +20,11 @@ class Config extends \Magento\Framework\Object
2020 */
2121 const WYSIWYG_STATUS_CONFIG_PATH = 'cms/wysiwyg/enabled ' ;
2222
23+ /**
24+ *
25+ */
26+ const WYSIWYG_SKIN_IMAGE_PLACEHOLDER_ID = 'Magento_Cms::images/wysiwyg_skin_image.png ' ;
27+
2328 /**
2429 * Wysiwyg status hidden
2530 */
@@ -79,6 +84,11 @@ class Config extends \Magento\Framework\Object
7984 */
8085 protected $ _backendUrl ;
8186
87+ /**
88+ * @var \Magento\Store\Model\StoreManagerInterface
89+ */
90+ protected $ _storeManager ;
91+
8292 /**
8393 * @param \Magento\Backend\Model\UrlInterface $backendUrl
8494 * @param \Magento\Framework\Event\ManagerInterface $eventManager
@@ -87,6 +97,7 @@ class Config extends \Magento\Framework\Object
8797 * @param \Magento\Core\Model\Variable\Config $variableConfig
8898 * @param \Magento\Widget\Model\Widget\Config $widgetConfig
8999 * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
100+ * @param \Magento\Store\Model\StoreManagerInterface $storeManager
90101 * @param array $windowSize
91102 * @param array $data
92103 */
@@ -98,6 +109,7 @@ public function __construct(
98109 \Magento \Core \Model \Variable \Config $ variableConfig ,
99110 \Magento \Widget \Model \Widget \Config $ widgetConfig ,
100111 \Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfig ,
112+ \Magento \Store \Model \StoreManagerInterface $ storeManager ,
101113 array $ windowSize = [],
102114 array $ data = []
103115 ) {
@@ -109,6 +121,7 @@ public function __construct(
109121 $ this ->_variableConfig = $ variableConfig ;
110122 $ this ->_widgetConfig = $ widgetConfig ;
111123 $ this ->_windowSize = $ windowSize ;
124+ $ this ->_storeManager = $ storeManager ;
112125 parent ::__construct ($ data );
113126 }
114127
@@ -184,13 +197,15 @@ public function getConfig($data = [])
184197 }
185198
186199 /**
187- * Return URL for skin images placeholder
200+ * Return path for skin images placeholder
188201 *
189202 * @return string
190203 */
191- public function getSkinImagePlaceholderUrl ()
204+ public function getSkinImagePlaceholderPath ()
192205 {
193- return $ this ->_assetRepo ->getUrl ('Magento_Cms::images/wysiwyg_skin_image.png ' );
206+ $ staticPath = $ this ->_storeManager ->getStore ()->getBaseStaticDir ();
207+ $ placeholderPath = $ this ->_assetRepo ->createAsset (self ::WYSIWYG_SKIN_IMAGE_PLACEHOLDER_ID )->getPath ();
208+ return $ staticPath . '/ ' . $ placeholderPath ;
194209 }
195210
196211 /**
0 commit comments