@@ -260,9 +260,9 @@ protected function _getPluginButtonsHtml($visible = true)
260
260
$ buttonsHtml .= $ this ->_getButtonHtml (
261
261
[
262
262
'title ' => $ this ->translate ('Insert Widget... ' ),
263
- 'onclick ' => "widgetTools.openDialog(' " . $ this -> getConfig (
264
- 'widget_window_url '
265
- ) . "widget_target_id/ " . $ this ->getHtmlId () . "') " ,
263
+ 'onclick ' => "widgetTools.openDialog(' "
264
+ . $ this -> getConfig ( 'widget_window_url ' )
265
+ . "widget_target_id/ " . $ this ->getHtmlId () . "') " ,
266
266
'class ' => 'action-add-widget plugin ' ,
267
267
'style ' => $ visible ? '' : 'display:none ' ,
268
268
]
@@ -274,13 +274,12 @@ protected function _getPluginButtonsHtml($visible = true)
274
274
$ buttonsHtml .= $ this ->_getButtonHtml (
275
275
[
276
276
'title ' => $ this ->translate ('Insert Image... ' ),
277
- 'onclick ' => "MediabrowserUtility.openDialog(' " . $ this ->getConfig (
278
- 'files_browser_window_url '
279
- ) . "target_element_id/ " . $ this ->getHtmlId () . "/ " . (null !== $ this ->getConfig (
280
- 'store_id '
281
- ) ? 'store/ ' . $ this ->getConfig (
282
- 'store_id '
283
- ) . '/ ' : '' ) . "') " ,
277
+ 'onclick ' => "MediabrowserUtility.openDialog(' "
278
+ . $ this ->getConfig ('files_browser_window_url ' )
279
+ . "target_element_id/ " . $ this ->getHtmlId () . "/ "
280
+ . (null !== $ this ->getConfig ('store_id ' ) ? 'store/ '
281
+ . $ this ->getConfig ('store_id ' ) . '/ ' : '' )
282
+ . "') " ,
284
283
'class ' => 'action-add-image plugin ' ,
285
284
'style ' => $ visible ? '' : 'display:none ' ,
286
285
]
@@ -395,13 +394,11 @@ protected function _wrapIntoContainer($html)
395
394
return '<div class="admin__control-wysiwig"> ' .$ html . '</div> ' ;
396
395
}
397
396
398
- $ html = '<div id="editor ' . $ this ->getHtmlId () . '" ' . ($ this ->getConfig (
399
- 'no_display '
400
- ) ? ' style="display:none;" ' : '' ) . ($ this ->getConfig (
401
- 'container_class '
402
- ) ? ' class="admin__control-wysiwig ' . $ this ->getConfig (
403
- 'container_class '
404
- ) . '" ' : '' ) . '> ' . $ html . '</div> ' ;
397
+ $ html = '<div id="editor ' . $ this ->getHtmlId () . '" '
398
+ . ($ this ->getConfig ('no_display ' ) ? ' style="display:none;" ' : '' )
399
+ . ($ this ->getConfig ('container_class ' ) ? ' class="admin__control-wysiwig '
400
+ . $ this ->getConfig ('container_class ' ) . '" ' : '' )
401
+ . '> ' . $ html . '</div> ' ;
405
402
406
403
return $ html ;
407
404
}
0 commit comments