Hi,
I try to intall the fckeditor - but I've a little problem.
I intalled the whole fck-files in my root directory like
test.com/fckeditor.
From there I want to use the editor for some projects, which I cal from another domain like jimmi.com/admin/admin.cfm.
There I included the following code:
<cfmodule template="../../../fckeditor/fckeditor.cfm" FCKeditorBasePath="http://test.com/fckeditor/" instanceName="EditorDefault" width="100%" height="450" toolbarSetName="" canUpload="" canBrowse="" initialValue="#EditorDefault#">
When I call this editor file - I see everything, but no text in the Editor-Iframe
I tested the test-page under _test/test.cfm and there everything is ok. The html-sourcecode is the same too, when I compare the test-page and my cfmodule page:
<IFRAME id="iframe_EditorDefault" src="http://greiner.cfmx.de/fckeditor/fckedi ... torDefault" width="100%" height="150" frameborder="no" scrolling="no"></IFRAME>
<IFRAME id="iframe_EditorDefault" src="http://greiner.cfmx.de/fckeditor/fckedi ... torDefault" width="100%" height="450" frameborder="no" scrolling="no"></IFRAME>
And very interesting is, that the text is shown in my cfmodule page in this form-tag:
<INPUT type="text" name="#instanceName#" value="#HTMLEditFormat(initialValue)#">
Does anyone know what's wrong with my editor?
Innuendo
Fri, 05/07/2004 - 22:13
#1
RE: CF: No text in the Editor-Area
RE: CF: No text in the Editor-Area
Do you call the right fckeditor.cfm template? In the current version 1.5, there should be the following output (in the html source):
<IFRAME id="iframe_EditorDefault" src="http://greiner.cfmx.de/fckeditor/fckedi ... torDefault" width="100%" height="450 frameborder="no" scrolling="no"></IFRAME>
<INPUT type="hidden" name="EditorDefault" value="... your value goes here ...">
In your example, the text resides in <INPUT type="text" ...>, not in a hidden field. Do you see "#instanceName#" in the html source? This is a coldfusion variable and should be replaced in the html output with the value of your instanceName (here: "EditorDefault").
2. Please copy the original "fckeditor.cfm" file from /fckeditor/fckeditor.cfm to the _same_ directory like your calling template. then call it like:
<cfmodule
template="fckeditor.cfm" FCKeditorBasePath="/fckeditor/"; instanceName="EditorDefault"
width="100%"
height="450"
toolbarSetName="default"
canUpload="true"
canBrowse="true"
initialValue="The text <b>goes</b> here.">
Do you see the html from initialValue now in the editor?
RE: CF: No text in the Editor-Area
thanks for your help - but I didn't find the right way.
@1: I did say it's a text-feld so I can see, if there is my text in there - and it is. There is no difference if the field is hidden or text.
@2: I tried this too - but it doesn't work. It can't work, because the editor-basepath is wrong. The editor is NOT copied in this directory, where I call the editor (and I don't want too). The template was copied by me in the calling directory and I used also the base-path "greiner.cfm...." - but it doesn't work too.
Any more suggestions for me?
Innuendo