Hi,
I using EXT.NET in VS 2010 environment, I have placed a ckEditor within a popup window, the user will click a control on the page which opens the window and sets the text to be edited.
The problem I am having is when I set the text in code behind it does not appear in the editor. This works if I use a regular ASP page without EXT.Net. EXT.Net guys suggested I set the text to be edited via JavaScript so I have created the below function:
Using a debugger I can see that this function is called and the respective properties i.e. innerHTML all now have the Text however the text area in the editor remains blank.
Can someone please advise I am sure I am missing something simple but I have not been able to resolve this after spending a day on it looking through the forums etc......
Thanks
I using EXT.NET in VS 2010 environment, I have placed a ckEditor within a popup window, the user will click a control on the page which opens the window and sets the text to be edited.
The problem I am having is when I set the text in code behind it does not appear in the editor. This works if I use a regular ASP page without EXT.Net. EXT.Net guys suggested I set the text to be edited via JavaScript so I have created the below function:
var setEditorText = function (editorClientId, text) { var editor = document.getElementById("ckEdit"); if (editor != null) { editor.innerHTML = text; editor.innerText = text; editor.textContent = text; }; // set the text for the editor };
Using a debugger I can see that this function is called and the respective properties i.e. innerHTML all now have the Text however the text area in the editor remains blank.
Can someone please advise I am sure I am missing something simple but I have not been able to resolve this after spending a day on it looking through the forums etc......
Thanks