CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 FCKeditor and Editable Grid

Print topic Send  topic

Author Message
knoops


Posts: 23
Posted: 05/11/2007, 9:09 AM

Don't use these to together!

When you attach the FCKeditor to a texarea, CCS will create a script a the top of the page with an absolute name as a reference. So the published page will attach the FCKeditor to eg. "myTextArea". But when you have an Editable Grid, you will end up with "MyTextArea", "MyTextArea_2, "MyTextArea_3", etc. The result is that you will end up with as many FCKeditors in your first textarea as you have records!!!

A work around (which have not tried yet) could be to cut and paste the generated javascript into the form somewhere and replace all the "MyTextArea" with "{MyTextArea}" in order to make any reference dynamic.

If it works, please share it! In the meanwhile I'll just stick with the separate Grid and Records Builders....
View profile  Send private message
marcwolf


Posts: 361
Posted: 07/15/2007, 10:53 PM

What I have done is to create a tiny popup webpage that contains ONLY the FCK editor and pass the text to be edited through as a form parameter.

On the grid you store the text in a hidden field thus you can get access to it when the master page (with the grid) is submitted.
It means that only one instance of FCK is run, and that is on a seperate page.

Alternatly you can use a DIV with one FCK instance in it and open/hide the div when necessary.
A button or link on the grid rows can pass the contents of the hidden field into and outof the FCK instamce.

Hope this helps

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.