Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 Re: User Discussion & Help » Focus window on Xinha editor » 2005-05-19 17:31:23

Still can't get this to work in firefox, anyone else have a clue?

#2 Re: User Discussion & Help » Focus window on Xinha editor » 2005-05-18 15:26:09

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??

#3 Re: User Discussion & Help » Focus window on Xinha editor » 2005-05-18 13:00:18

editor.focusEditor() doesn't scroll the browser to the xinha instance. I suppose I could use scrollTo() sad  but how do you know the coordinates of the editor?

#4 User Discussion & Help » Focus window on Xinha editor » 2005-05-18 11:50:10

Mr Bojangles
Replies: 5

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??

#5 User Discussion & Help » update contents of an editor » 2005-05-16 13:17:08

Mr Bojangles
Replies: 2

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 ???

Board footer

Powered by FluxBB