I've gone through the thread in Asp.net editor but can't find a solution. I added createRestorePoint to my javascript function so that any pasting would occur on the last cursor location and not at the start of the radeditor and while it works fine on Mozilla, in IE8 it the pasteHTML replaces the
entire content every time. My code is as below.
Please ignore the syntax of the two $find statements, the javascript is built up in a string on the server side
| <input type='button' id='cmdDynEmailField' value=' >> ' onclick='SetValueInBody()' unselectable='on' /> |
| function SetValueInBody() { |
| var _dllGetDynamicFieldKey = $find('" + _dllGetDynamicFieldKey.ClientID + "'); |
| var _txtBody = $find('" + _txtRadEditor.ClientID + "'); |
| var _restorePoint = _txtBody.createRestorePoint(); |
| _restorePoint.Select(); |
| _txtBody.pasteHtml(_dllGetDynamicFieldKey.get_value()); |
| } |
Please ignore the syntax of the two $find statements, the javascript is built up in a string on the server side
