I have an application where I use the cutesoft editor.
When loading a record from the database, the editor shows text taken from the "Text1" field.
editor1.text = orow.item("Text1")
This shows the text fine.
Now at the bottom of the page, I have a checkbox, chkHTML. Basically, when this is checked, it sets up the editor to use formatted text instead of plain text. What this does is it removes the toolbar when the checkbox is unchecked.
Protected Sub chkHTML_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkHTML.CheckedChanged
If Me.chkHTML.Checked Then
Me.editor1.ConfigurationPath = "~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/HTML.config"
Else
Me.editor1.ConfigurationPath = "~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/PlainText.config"
End If
End Sub
Now the problem is this. If I load the page, the text is loaded fine: e.g. "Test text loaded". I then go to the editor and replace the text: e.g. "Replacing default text". But then when I click the chkHtml checkbox to check it, the toolbar is added fine, but the text in the editor is restored to the first one "Test text loaded".
Stepping through, the text property of the editor is always "Test text loaded" even just after I type in the "Replacing default text", even stepping through a TextChanged event for the editor.
Is there a way to get the newly entered text and keep it? Thanks