Is it possible to load a complete html file into the fckeditor.
've created already a function that reads the data from a html file. But i'm unable to insert it into the fckeditor.
've created already a function that reads the data from a html file. But i'm unable to insert it into the fckeditor.
RE: Load html file into fckeditor (asp.net vb)
Creating an object of the fckeditor in the code behind file.
(in asp.net vb)
Protected WithEvents FCKeditor1 As FredCK.FCKeditor
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
FCKeditor1.Value = GetFileContents(MapPath("/output.html"))
End If
End Sub
You have to add a reference to the dll file found in the dir: _aspnet\FredCK.FCKeditor\bin\Release
RE: Load html file into fckeditor (asp.net vb)
this sounds interesting, but could you explain what exactly you are doing here? unfortunately, I've no asp.net skills...
what is the exact goal of this function?
thx
markus
RE: Load html file into fckeditor (asp.net vb)
I'm trying to import the FCK editor into my .aspx file. I also want the information entered in the editor to be updated in my MS SQL database. This is where my problems start. I can't seem to get to the information entered in the editor becasuse FCK editor seems to use the 'Value' property to store the info entered and MS Visio wants it to be a 'Text' property (like all other server controls). How do I convert (or get hold of ) the information entered so that I can store it in my database?
Please help,
/Andy
RE: Load html file into fckeditor (asp.net vb)
Hope this helps
RE: Load html file into fckeditor (asp.net vb)
to save it, you write into the stream with ctrlID.Text
Hope it helps