Hi, We have customized the application with bookmark and link tool. In visual format html file we have setting the data by using getDocument() and successfully setting it. After that the cursor position is misplacing to top and creating link instead of selected place.
Here I am pasting the code which we used in html file.
function setData() {
alert("setData test");
var selectedHTML = top.opener.eWebEditPro[objQuery["editorName"]].getSelectedHTML();
vfdataform.editorName.value = objQuery["editorName"];
vfdataform.selectedType.value = objQuery["selectedType"];
vfdataform.selectedHTML.value = selectedHTML;
Var document=top.opener.eWebEditPro[objQuery["editorName"]].getDocument();
vfdataform.document.value = document;
vfdataform.hostname.value = "http://" + window.location.hostname;
vfdataform.action = objQuery["action"];
vfdataform.submit();
return true;
}
Why the cursor position is missing in text area after executing the getDocument() or getBodyHtml()?
Is there any method to replace the getDocument() with out missing the cursor position, except getBodyHtml()?