Looks right to me. Are you sure the simplerichtext formtool is picking up the config correctly?
On Thu, Jan 8, 2009 at 12:19 PM, Tomek Kott <[email protected]> wrote: > > Hi All, > > I'm trying to use stPropMetadata properly. I want to have a "News > submission" feature for my members, but with a much simplified rich > text editor. So the dmNews type has a body property that has > ftType="richtext". Now, I also have a "simplerichtext" type which is > the richtext.cfc file extened with a different init, display, and > getConfig functions. (different display function so that it > automatically grabs the getConfig configuration). Anyway, I figured > that stPropMetadata would allow me to change the ftType "mid-stride" > in the following manner: > > <cfset myProp.typename="dmNews"> > <cfset myProp.ObjectID = createUUID()> > <cfset stPropMetadata = structNew()> > <cfset stPropMetadata.body=structNew()> > <cfset stPropMetadata.body.ftType="simpleRichText"> > <cfset lFields="title,Body"> > <ft:object bValidation="true" key="register" > r_stPrefix="prefix" > legend="Personal Info" stobject="#myProp#" > stPropMetadata="#stPropMetadata#" lFields="#lFields#" /> > > This doesn't work (it loads up the default looking rich text editor). > I tried this in a different browser than I was using for admin stuff, > and I have tried redoing COAPI metadata etc. > > Is this the way to use it? Or do I have the syntax wrong? > > Thanks > > Tomek > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
