I am hosting the CKEditor inside a C# Winforms app.
I can initialize the contents no problem with:
webBrowser1.Document.GetElementById("CKEditor1").InnerText = strData;
But I am having trouble reading the changed contents back out. Doing the obivous...
strChangedData = webBrowser1.Document.GetElementById("CKEditor1").InnerText
...does not work. It returns the initial data that was stored in it.
Example: if I initialize it with "Welome to CKEditor"
and then make changes in the editor to read "Goodbye from CKEditor"
when I read the contents back out using the above line I get "Welcome to CKEditor" (i.e. in strChangedData from the example above)
So how does one access the MODIFIED information from a CKEditor embedded in a webBrowser control in a C# WinForms application?
I can initialize the contents no problem with:
webBrowser1.Document.GetElementById("CKEditor1").InnerText = strData;
But I am having trouble reading the changed contents back out. Doing the obivous...
strChangedData = webBrowser1.Document.GetElementById("CKEditor1").InnerText
...does not work. It returns the initial data that was stored in it.
Example: if I initialize it with "Welome to CKEditor"
and then make changes in the editor to read "Goodbye from CKEditor"
when I read the contents back out using the above line I get "Welcome to CKEditor" (i.e. in strChangedData from the example above)
So how does one access the MODIFIED information from a CKEditor embedded in a webBrowser control in a C# WinForms application?