I do just like in the examples:
<%
Set oFCKeditor = New FCKeditor
oFCKeditor.ToolbarSet = "Klrnet"
oFCKeditor.Value = rs("content")
oFCKeditor.CreateFCKeditor "EditorKlrnet", "100%", 350
%>
When I load this code the content-window is empty.
The HTML-output is like this:
<IFRAME src="http://www.kystlivredningdanmark.dk/FCK ... bar=Klrnet" width="100%" height="350" frameborder="no" scrolling="no"></IFRAME><INPUT type="hidden" name="EditorKlrnet" value="&lt;H1&gt;Kystlivredning&lt;/H1&gt;
&lt;P&gt;af Lars Heino Jensen den 21. maj 2001&lt;/P&gt;
&lt;P&gt;Uanset hvor forskellig en baggrund vi har, s&#229; har vi, som kystlivreddere, en helt klar f&#230;llesn&#230;vner: sejlads, sv&#248;mning, fysiske udfordringer, friluftsliv, masser af humor og godt kammeratsskab.&lt;/P&gt;">
Can anybody explain to me why this doesn't work?
--Jowns--
Tue, 02/17/2004 - 04:43
#1
RE: Basics: I can't insert data from db to FC
<input type="hidden" value="<%=rset.getObject("text") %>" name="txt">
<SCRIPT language="javascript">
<!--
var oFCKeditor ;
oFCKeditor = new FCKeditor('testo') ;
oFCKeditor.Value = document.cms.txt.value;
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
//-->
use an hidden field to store the data and then access it with document.cms.txt.value. Works great for me
Bye
Francesco