TinyMCE config and Formtools richtext

5 views
Skip to first unread message

Chris Roth

unread,
Feb 5, 2007, 5:23:22 PM2/5/07
to farcry-beta
Is it just me or does the rich text form tool (used in dmHTML edit)
bypass the default TinyMCE config?

I ask, because I need "paste as text".. I see it enabled in the config
file, but the richtext.cfc does not seem to use this. I had to add
pastetext to line 54.

I know farcrycontenttemplates was added ot richtext.cfc, but shouldnt
this look at the tinymce config file?

Matthew Bryant

unread,
Feb 7, 2007, 6:30:56 PM2/7/07
to farcr...@googlegroups.com
You're right Chris,

The new richtext formtool does not include the config by default. You will need to extend the dmHTML in your project.

1. Create a file in your project/packages/system folder called dmHTML.cfc with the following contents.
----------------
<cfcomponent extends="farcry.farcry_core.packages.types.dmhtml" >
<cfproperty name="body" ftType="richtext" ftConfig="tinymce.tinymce_config" />

</cfcomponent>
----------------

2. Run an Update App.

Your dmHTML.body field will now use the application.config.tinymce.tinymce_config variable to configure the tinymce editor.

The reasons for doing this are well debated and we believe it is the best solution moving forward. We will be explaining the reasons for all this in the coming weeks, suffice to say, the biggest reason comes down to source control.

Kind regards

-- 
-- Matthew Bryant
Product Development Manager
Daemon Internet Consultants
Adobe Solutions Partner
p. 02 9380 4162
f. 02 9380 4204



Reply all
Reply to author
Forward
0 new messages