Skip to content

Commit

Permalink
FC-2884 use cdn function to insert image url in tinyMCE images list
Browse files Browse the repository at this point in the history
  • Loading branch information
linsanity committed Jul 7, 2014
1 parent 03d1479 commit a8c05c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webtop/facade/TinyMCEImageList.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a8c05c5

Please sign in to comment.