Skip to content

Commit

Permalink
fix for image upload when tinymce is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed May 9, 2023
1 parent 437b4da commit 4dc6a93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/mage/adminhtml/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ Mediabrowser.prototype = {
Windows.close('browser_window');
if (targetEl.tagName && targetEl.tagName.toLowerCase() == 'input') {
targetEl.value = transport.responseText;
} else if (targetEl.tagName && targetEl.tagName.toLowerCase() == 'textarea') {
updateElementAtCursor(targetEl, transport.responseText);
} else {
targetEl(transport.responseText);
}
Expand Down

0 comments on commit 4dc6a93

Please sign in to comment.