Skip to content
Permalink
Browse files
FC-2884 use cdn function to insert image url in tinyMCE images list
  • Loading branch information
linsanity committed Jul 7, 2014
1 parent 03d1479 commit a8c05c59c277670d6e74aefdd4e2cc69ba4288a1
Showing 1 changed file with 3 additions and 1 deletion.
@@ -18,11 +18,13 @@
</cfquery>
</cfif>

<cfset oType = createObject("component", application.types[url.ftImageListFilterTypename].packagePath) />

<cfoutput>
var tinyMCEImageList = new Array(
// Name, URL
<cfloop query="qImages">
["<cfif len(qImages.label)>#qImages.label#<cfelse>#qImages.image#</cfif>", "#application.fapi.getImageWebRoot()##qImages.image#"]<cfif qImages.currentRow LT qImages.RecordCount>,</cfif>
["<cfif len(qImages.label)>#qImages.label#<cfelse>#qImages.image#</cfif>", "#oType.getFileLocation(objectid=qImages.objectid, fieldname=url.ftImageListFilterProperty).path#"]<cfif qImages.currentRow LT qImages.RecordCount>,</cfif>
</cfloop>
);
</cfoutput>

0 comments on commit a8c05c5

Please sign in to comment.