Re: Link List in TinyMCE disappeared

Laksma <[email protected]> Fri, 10 Oct 2008 22:39:21 -0700 (PDT)
Newsgroups gmane.comp.cms.farcry.user
Message-ID <[email protected]>
Hi Geoff,

I work with Elizabeth. I found out that the metadata contains a double-
quote character. Of course, this would be a problem when the
JavaScript parsing the data.
So, here's the patch.


Index: C:/FarCry5/core/webtop/facade/tinyMCELinkList.cfm
===================================================================
--- C:/FarCry5/core/webtop/facade/tinyMCELinkList.cfm	(revision 3734)
+++ C:/FarCry5/core/webtop/facade/tinyMCELinkList.cfm	(working copy)
@@ -70,7 +70,6 @@

 <cfset inc = 0>

-
 <cfoutput>
 // This list may be created by a server logic page PHP/ASP/ASPX/JSP
in some backend system.
 // There links will be displayed as a dropdown in all link dialogs if
the "external_link_list_url"
@@ -80,7 +79,6 @@
 	// Name, URL
 </cfoutput>

-
 	<cfif qRelated.recordCount>
 		<cfoutput>["--- RELATED OBJECTS ---", ""],
 		</cfoutput>
@@ -97,14 +95,14 @@
 		<cfoutput>["--- NAVIGATION TREE ---", ""],
 		</cfoutput>

-		<cfloop query="qSiteMap">
+		<cfloop query="qSiteMap">
 			<cfset inc = inc + 1>
-			<cfoutput>["#RepeatString('-', qSiteMap.nLevel)#
#qSiteMap.objectname#", "#application.url.webroot#/index.cfm?
objectid=#qSiteMap.objectid#"]<cfif inc LT qSiteMap.RecordCount +
qRelated.RecordCount>,</cfif>
+			<cfoutput>["#RepeatString('-', qSiteMap.nLevel)#
#Replace(qSiteMap.objectname,'"','\"','ALL')#",
"#application.url.webroot#/index.cfm?
objectid=#qSiteMap.objectid#"]<cfif inc LT qSiteMap.RecordCount +
qRelated.RecordCount>,</cfif>
 			</cfoutput>
 		</cfloop>

 	</cfif>
-
+
 <cfoutput>
 );
 </cfoutput>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To post to this group, send email to farcry-user-/[email protected]
To unsubscribe from this group, send email to farcry-user+unsubscribe-/[email protected]
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---