andrefogelman
Posts: 117
|
| Posted: 10/05/2008, 12:36 PM |
|
I have already posted to support as question / bug but I decided to post it here as well in order to know if anyone else has had this type of problem.
I use asp.net VB and firebird database
I have a page with a dropdown and a textarea.
To the textarea I have attached FCKeditor.
I have implemented an ajax autofill to the onchange event of the dropdown.
If the textarea has fckeditor attached the information does not get to the textarea.
If I remove the fckeditor link from the textarea everything works fine
Andre
|
 |
 |
glerma
Posts: 56
|
| Posted: 01/02/2009, 9:08 PM |
|
This is a problem for me too. Although I dont use VB and firebird. It appears that autofill will not populate a Textarea with FCKEditor. I wish i could provide a solution. I'm still researching though. if i find one, i'll share it with you.
|
 |
 |
mentecky
Posts: 321
|
| Posted: 01/03/2009, 6:01 AM |
|
Andre,
To change the contents of the Editor try something like this:
FCKeditorAPI.GetInstance('pageshtml').SetHTML("This is a test");
In that example my record is "pages" and my textarea is "html". You can find the instance name by looking in the HTML and look for the ID assigned to the textarea.
Hope that helps.
Rick
_________________
http://www.ccselite.com |
 |
 |
glerma
Posts: 56
|
| Posted: 01/03/2009, 9:25 AM |
|
Hi Mentecky,
Thanks for your input. I was wondering if you could elaborate a bit more on this suggestion? How would I implement the FCKeditorAPI call in the context of using the Autofill with an FCKEditor-enabled TextArea?
Thanks,
George
|
 |
 |
mentecky
Posts: 321
|
| Posted: 01/03/2009, 12:31 PM |
|
George,
I guess the easiest way to use this with Autofill, which I don't use much because I still use CCS 3.2, would be this:
1. Create a hidden field not attached to any database fields. Give it a name, ie. "temptext".
2. Create your autofill to update the new hidden field instead of the FCKEditor.
3. In the new hidden field's On Change event add something like:
FCKeditorAPI.GetInstance('pageshtml').SetHTML(document.forms["my_form"].temptext.value);
pageshtml would be the ID of the FCKEditor textbox. my_form would be the name of your form (Record) component.
I've never tried this but that's where I'd start.
Hope that helps,
Rick
_________________
http://www.ccselite.com |
 |
 |
glerma
Posts: 56
|
| Posted: 01/15/2009, 8:34 AM |
|
Thanks. I'll give that a try.
|
 |
 |