Dear friends,
we are trying to add more more links in TinyMCE in insert/edit links
popup editor.
What we've done so far:
1. extended richtext.cfc and put it under projectname/packages/
formtools:
and have this modified in edit function:
external_link_list_url : "/farcry/projects/
#application.applicationname#/tags/webskin/tinyMCELinkList.cfm?
objectID=#arguments.stObject.ObjectID#&typename=#arguments.typename#&relatedTypenames=#arguments.stMetadata.ftLinkListRelatedTypenames#"
});
2. Created tinyMCElinkList for the projectname/tags/webskin:
<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"
// option is defined in TinyMCE init.
var tinyMCELinkList = new Array(
// Name, URL
["Search", "#application.url.webroot#/index.cfm?
objectID=#application.navid.search#"]
);
</cfoutput>
3. Drop down wirh links is not created in insert/edit popup editor in
tinyMCE, instead while checking application log we see:
Variable APPLICATION is undefined. The specific sequence of files
included or processed is: C:\inetpub\wwwroot\farcry\projects\reporter
\tags\webskin\tinyMCELinkList.cfm, line: 11
which stands for ["Search", "#application.url.webroot#/index.cfm?
objectID=#application.navid.search#"]
Any ideas?
Thanks,
Mika
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---