I apologize to those of you who I have contacted individually for the repeated emails.
I am currently trying to implement a "find" function in the textareas. There are a couple of approaches to take, both which seem to have their problems. The first option would be to implement the replace function found in the composer for the plaintext portion of the editor. However, this does not seem to be able to access the "find" algorithm in embedding except through the javascript/xul. I cannot figure out how to make the plaintext c++ code launch a dialog window. The second option would be to modify the find function in embedding to include textareas. This, it seems, would require modifying the find algorithm to extract the current text from the textarea and including that as a text node in the algorithm. However, it is not clear as to how the scrolling would be taken care of, so that the scrollbar would be positioned so that the highlighted text in the editor would be visible. The third option is just to include a new javascript function which would separately perform the searching through the textarea text, but I recall hearing about a bug in the textarea, which returns the user to the top of the textarea when a javascript function is performed. I am not sure if I am clear on any of these points, so any feedback on any of these approaches or any new approaches would be much appreciated. Thanks, Danielle Farrar _______________________________________________ mozilla-editor mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-editor
