Skip to content

Commit 4dc6a93

Browse files
committed
fix for image upload when tinymce is not enabled
1 parent 437b4da commit 4dc6a93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/mage/adminhtml/browser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ Mediabrowser.prototype = {
187187
Windows.close('browser_window');
188188
if (targetEl.tagName && targetEl.tagName.toLowerCase() == 'input') {
189189
targetEl.value = transport.responseText;
190+
} else if (targetEl.tagName && targetEl.tagName.toLowerCase() == 'textarea') {
191+
updateElementAtCursor(targetEl, transport.responseText);
190192
} else {
191193
targetEl(transport.responseText);
192194
}

0 commit comments

Comments
 (0)