Is there a way of getting and/or setting the caret position programatically?
This is the scenario, I have the fckeditor embeded in a web page(frame), everytime I insert data into the editor the caret goes to the begining of the page. It will be nice to tell the editor where to position the cursor.
Regards
This is the scenario, I have the fckeditor embeded in a web page(frame), everytime I insert data into the editor the caret goes to the begining of the page. It will be nice to tell the editor where to position the cursor.
Regards
RE: Getting and Setting caret position
I didn't test it so I don't know why it isn't enabled, but I think that the reason is that it was part of a bunch of changes in order to make <enter> insert <br> in Firefox, and it was disabled as a whole until the problems are fixed.
RE: Getting and Setting caret position
Is there a way of getting the cursor position as well?
RE: Getting and Setting caret position
RE: Getting and Setting caret position
RE: Getting and Setting caret position
I'm sure that Firefox does have an API to get the current caret position (based on nodes), and I think that IE also has one, but I can't tell exactly how does each one works.