I have understand that this is not a perfect marriage, but with the latest version I managed to solve a problem I had with FCKEditor. But now instead I don't manage to save the text written in the editor. I use the editor on pages which uses masterpages so my initial script look like:
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<script type="text/javascript">
var textbox = document.getElementById('<%= TextBox2.ClientID %>');
var editor = CKEDITOR.replace(textbox);
</script>
When the submit button, beneath the editor, is clicked I handle that event in server-code and when I try to use TextBox2.Text it turns out to be empty. So I would need help to get the value of a javascript variable. I have tried to use CKEditor.instances[0],getData() (since I don't understand what id i should use after 'instances.') together with hidden variables but with no success.
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<script type="text/javascript">
var textbox = document.getElementById('<%= TextBox2.ClientID %>');
var editor = CKEDITOR.replace(textbox);
</script>
When the submit button, beneath the editor, is clicked I handle that event in server-code and when I try to use TextBox2.Text it turns out to be empty. So I would need help to get the value of a javascript variable. I have tried to use CKEditor.instances[0],getData() (since I don't understand what id i should use after 'instances.') together with hidden variables but with no success.