You are not logged in.
Pages: 1
Still can't get this to work in firefox, anyone else have a clue?
Ok, so I can now get the the browser window to scroll to a certain instance by doing this...
make a link <a href="javascript:goTo(edName)"/>
function goTo(edName) {
xinha_editors[edName].activateEditor();
xinha_editors[edName].focusEditor();
xinha_editors[edName].scrollToElement();
}
The problem is this will only work in IE and I would like it to work in FF too. Also, if you click the link once and it takes you to the editor, then scroll back up and click it again it doesn't work, seems like something to do with focus still being on the editor??
editor.focusEditor() doesn't scroll the browser to the xinha instance. I suppose I could use scrollTo()
but how do you know the coordinates of the editor?
I would like to be able to make the browser scroll to an instance of xinha editor. For example if i have a regular <textarea> i can do document.getElementById("textareaID").focus() and this works fine. but for some reason i can not do this with a Xinha textarea. An thoughts on how to accomplish this??
I have a spellchecking program I would like to use with Xinha but have problems making it work...
i can get the data entered into an editor by calling document.form.onsubmit() and then when i check document.form.area.value the value is set. My problem is how do i update the data in the editor with the correctly spelled data ???
Pages: 1