...

View Full Version : Rich Text Editor - Cursor "Starting Point" Problem



badg0003
06-04-2005, 12:47 AM
I'm having a bit of a minor problem with a Rich Text Editor I'm building. Basically, when unformatted text is entered for the first time and then I go to add a Bold, Italic, etc. style to it, the cursor jumps from the end of the line to the very beginning. This is not exactly a huge deal, but I'm sure there is a reason for this.

Please note that this problem only occurs on Mozilla-based browsers. No problems that I can see with IE.

Thanks,

Mike

jettlarue2003
06-05-2005, 03:12 AM
i dont think this is neccessarily your code but the browsers way of parsing it.

martin_narg
06-05-2005, 04:09 AM
you can create a range to do this, manipulate that way:
Mozilla DOM Range Reference (http://www.mozilla.org/docs/dom/domref/dom_range_ref.html#998954)

There are also some very good, ready built rich text editors out there such as:
http://www.themaninblue.com/experiment/widgEditor/

hope this helps

m_n



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum