RE: fckEditor and Coldfusion tags

2010-10-21 Thread Russ Michaels
...@gmail.com] Sent: 21 October 2010 06:34 To: cf-talk Subject: Re: fckEditor and Coldfusion tags The only way to do it would be to write the code into a file, then CFINCLUDE it, kind of cumbersome, Not quite the only way. 1. Write the code in the editor ... as if it were a code editor :-| 2. Store

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Matt Robertson
Are you trying to retrieve coldFusion code from a database and then execute it? -- -...@robertson-- Janitor, The Robertson Team mysecretbase.com ~| Order the Adobe Coldfusion Anthology now!

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl
yep. Are you trying to retrieve coldFusion code from a database and then execute it? -- -...@robertson-- Janitor, The Robertson Team mysecretbase.com ~| Order the Adobe Coldfusion Anthology now!

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl
Please tell me this can be done :0 Are you trying to retrieve coldFusion code from a database and then execute it? -- -...@robertson-- Janitor, The Robertson Team mysecretbase.com ~| Order the Adobe Coldfusion Anthology

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Kym Kovan
On 21/10/2010 11:26, Torrent Girl wrote: Please tell me this can be done :0 yes, indirectly. The editor will by default change any or to their equivalents lt: and gt; One has to ask who is going to write this code? It is the world's second biggest security issue letting code be created

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl
Developers will write it. Its in a protected CMS. Just forms and cfoutput tags are really going to be the only code in the CMS. We just want to have a completely dynamic site. I found this snippet: cffunction name=CleanUpCode access=public returntype=string output=true cfargument

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Claude Schnéegans
Just forms and cfoutput tags are really going to be the only code in the CMS. Even so, you cannot have a CFML template create CFML code and expect it to be executed. The only way to do it would be to write the code into a file, then CFINCLUDE it, kind of cumbersome, especially in a multiuser

RE: fckEditor and Coldfusion tags

2010-10-20 Thread andy matthews
ColdFusion has a function called Evaluate. One way to run this code would be to pass the contents of your dbField into the function. The problem is that if it contained anything OTHER than CF code it would probably die. Another option might be for the user to input their code, then you save it

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl
This function is working for me. cffunction name=CleanUpCode access=public returntype=string output=true cfargument name=string type=string required=true/ cfset string = #Replace(string, ’, ', all)# cfset string = #Replace(string, , , all)# cfset string =

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl
hmmm...maybe I'll add the function before i enter the text into the DB This function is working for me. cffunction name=CleanUpCode access=public returntype=string output=true cfargument name=string type=string required=true/ cfset string = #Replace(string, ’, ',

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl
I spoke too soonit's not working hmmm...maybe I'll add the function before i enter the text into the DB ~| Order the Adobe Coldfusion Anthology now!

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Mike Kear
I get round this issue in my CMS by having a fileName field. For security reasons, this field only appears in forms offered to validated users who have permission to upload such files. (not many!).They can upload the file, using the uploader on the 'content' page, then instead of putting

Re: fckEditor and Coldfusion tags

2010-10-20 Thread Matt Robertson
The only way to do it would be to write the code into a file, then CFINCLUDE it, kind of cumbersome, Not quite the only way. 1. Write the code in the editor ... as if it were a code editor :-| 2. Store the form field data using the gymnastics described earlier. 3. Publish the data as a