mirror of
https://github.com/e107inc/e107.git
synced 2025-07-27 01:40:22 +02:00
Bugfix: TinyMce image-preview was missing when editing the properties of an existing image. (ibrowser)
This commit is contained in:
@@ -32,7 +32,7 @@ unset($tinyMCE_imglib_include);
|
|||||||
include 'config.php';
|
include 'config.php';
|
||||||
|
|
||||||
|
|
||||||
$request_uri = urldecode(empty($_POST['request_uri'])?(empty($_GET['request_uri'])?'':$_GET['request_uri']):$_POST['request_uri']);
|
//$request_uri = urldecode(empty($_POST['request_uri'])?(empty($_GET['request_uri'])?'':$_GET['request_uri']):$_POST['request_uri']);
|
||||||
|
|
||||||
// if set include file specified in $tinyMCE_imglib_include
|
// if set include file specified in $tinyMCE_imglib_include
|
||||||
if (!empty($tinyMCE_imglib_include))
|
if (!empty($tinyMCE_imglib_include))
|
||||||
@@ -223,7 +223,7 @@ echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://
|
|||||||
formObj.size.value = 'n/a';
|
formObj.size.value = 'n/a';
|
||||||
owidth = eval(formObj.width.value);
|
owidth = eval(formObj.width.value);
|
||||||
oheight = eval(formObj.height.value);
|
oheight = eval(formObj.height.value);
|
||||||
document.getElementById('imgpreview').src = '<?php echo $_root ?>' + formObj.src.value;
|
document.getElementById('imgpreview').src = formObj.src.value;
|
||||||
|
|
||||||
updateStyle();
|
updateStyle();
|
||||||
}
|
}
|
||||||
@@ -290,9 +290,8 @@ echo "</head>
|
|||||||
window.name = 'imglibrary';
|
window.name = 'imglibrary';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form id=\"libbrowser\" method=\"post\" action=\"ibrowser.php?request_uri=".$_GET['request_uri']."\" enctype=\"multipart/form-data\" target=\"imglibrary\">
|
<form id=\"libbrowser\" method=\"post\" action=\"ibrowser.php\" enctype=\"multipart/form-data\" target=\"imglibrary\">
|
||||||
<div>
|
<div>
|
||||||
<input type=\"hidden\" name=\"request_uri\" value=\"". urlencode($request_uri)."\" />
|
|
||||||
<input type=\"hidden\" name=\"lib_action\" value=\"\" />
|
<input type=\"hidden\" name=\"lib_action\" value=\"\" />
|
||||||
<fieldset style= \"padding: 5px; margin-top: -5px;\">
|
<fieldset style= \"padding: 5px; margin-top: -5px;\">
|
||||||
<legend>".$lang_ibrowser_img_sel."</legend>
|
<legend>".$lang_ibrowser_img_sel."</legend>
|
||||||
|
Reference in New Issue
Block a user