diff --git a/inc/imce.page.inc b/inc/imce.page.inc
index 74a0c1f..4f84297 100644
--- a/inc/imce.page.inc
+++ b/inc/imce.page.inc
@@ -79,6 +79,15 @@ function imce_content($user, $jsop = NULL) {
   $imce['dir'] = str_replace('%2F', '/', rawurlencode($imce['dir']));
   unset($imce['files'], $imce['name'], $imce['directories'], $imce['subdirectories'], $imce['filesize'], $imce['quota'], $imce['tuquota'], $imce['thumbnails'], $imce['uid'], $imce['usertab']);
 
+  // Check if 'CDN' module is enabled and cdn status is enabled,
+  // add a cdn_domain in imce.
+  if (module_exists('cdn') && variable_get(CDN_STATUS_VARIABLE, CDN_DISABLED) == CDN_ENABLED) {
+    $cdn_get_domains = cdn_get_domains();
+    if (!empty($cdn_get_domains)) {
+      $imce['cdn_domain'] = $cdn_get_domains[0];
+    }
+  }
+
   drupal_add_js($imce_ref, 'setting');
 
   return $content;
diff --git a/js/imce.js b/js/imce.js
index b0b2e4d..ec197d4 100644
--- a/js/imce.js
+++ b/js/imce.js
@@ -508,9 +508,17 @@ setPreview: function (fid) {
   var row, html = '';
   imce.vars.prvfid = fid;
   if (fid && (row = imce.fids[fid])) {
+
+    var file_cdn_path = '';
+    // Check cdn_domain, dispay cdn path to file.
+    if (imce.conf.cdn_domain) {
+      file_cdn_path = '<label>CDN Path</lable>';
+      file_cdn_path += '<input type="text" size="100px" value="' + imce.conf.cdn_domain + imce.getURL(fid) + '" /><br />';
+    }
+
     var width = row.cells[2].innerHTML * 1;
     html = imce.vars.previewImages && width ? imce.imgHtml(fid, width, row.cells[3].innerHTML) : imce.decodePlain(fid);
-    html = '<a href="#" onclick="imce.send(\''+ fid +'\'); return false;" title="'+ (imce.vars.prvtitle||'') +'">'+ html +'</a>';
+    html = file_cdn_path + '<a href="#" onclick="imce.send(\''+ fid +'\'); return false;" title="'+ (imce.vars.prvtitle||'') +'">'+ html +'</a>';
   }
   imce.el('file-preview').innerHTML = html;
 },
