rfe: Image Management (funded by Formation Design Systems)
This commit is contained in:
parent
5e7565d8df
commit
35f4f5c4fb
3 changed files with 14 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.0.7
|
||||
- rfe: Image Management (funded by Formation Design Systems)
|
||||
- fix: can't change default size of text fields (midellaq)
|
||||
- fix: sqlform trunctate search results doesn't work (Martin Kamerbeek /
|
||||
Procolix)
|
||||
|
|
|
|||
|
|
@ -62,6 +62,14 @@
|
|||
|
||||
"uploadsPath" : "/data/WebGUI/www/uploads",
|
||||
|
||||
# Set this value to 1 if you want rich editors to use the
|
||||
# WebGUI asset URLs for images rather than their real URLs
|
||||
# in the uploads folder. The advantage of this is that users
|
||||
# see short clean WebGUI controlled URLs. However, this is
|
||||
# slower than the default.
|
||||
|
||||
"richEditorsUseAssetUrls" : 0,
|
||||
|
||||
# An array of URLs that WebGUI should leave alone for normal
|
||||
# processing by Apache. Anything that begins with these URLs
|
||||
# will be entirely ignored by WebGUI
|
||||
|
|
|
|||
|
|
@ -306,7 +306,11 @@ sub www_richEditViewThumbnail {
|
|||
$output .= '</div>';
|
||||
$output .= '<script type="text/javascript">';
|
||||
$output .= "//<![CDATA[\n";
|
||||
$output .= "\nvar src = '".$image->getFileUrl."';\n";
|
||||
if ( $session->config->get("richEditorsUseAssetUrls")) {
|
||||
$output .= "\nvar src = '".$image->getUrl."';\n";
|
||||
} else {
|
||||
$output .= "\nvar src = '".$image->getFileUrl."';\n";
|
||||
}
|
||||
$output .= "if(src.length > 0) {
|
||||
var manager=window.parent;
|
||||
if(manager)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue