Help, I'm new to this and know it can be done but not sure where to start. When I load the editor I would like to display the content from my database to be edited. I've retrieved the content using ASP and when I display it in an ordinary form it is fine but when I put it to display in the editor it falls over.
Simplistically I've done this
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.Value = "<%=PageBody%>"
oFCKeditor.Create "FCKeditor1"
%>
but its obviously not that simple. Can someone point me in the right direction ? It works OK when i just put text in oFCKeditor.Value
Thanks
Simplistically I've done this
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.Value = "<%=PageBody%>"
oFCKeditor.Create "FCKeditor1"
%>
but its obviously not that simple. Can someone point me in the right direction ? It works OK when i just put text in oFCKeditor.Value
Thanks
Re: Uploading content in ASP
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.Value = PageBody
oFCKeditor.Create "FCKeditor1"
%>
Re: Uploading content in ASP
Re: Uploading content in ASP
I am using classic ASP, and I have a form created to edit records in a database that already exist. I am using a SQL UPDATE statement to execute this command, and it works fine on all form fields that currently do NOT have an FCKeditor instance associated with them. For the ones that do, the input to the DB is just blank and I can't figure out why. I have my FCKeditor instance set up like this:
<%
Dim aFCKeditor
Set aFCKeditor = New FCKeditor
aFCKeditor.BasePath = "fckeditor/"
aFCKeditor.Value = (rsName.Fields.Item("FCKeditor1").Value)
aFCKeditor.Create "FCKeditor1"
%>
When you open up the form, it correctly displays the information from the recordset into the FCKeditor. However, if I make any changes to that content (which is the purpose of this form), none of the new additions get sent to the DB. Like I said, other form fields that do NOT use FCKeditor work fine when updating them via this form. What am I missing?