Quote:
got it working. have an issue though: when editor is set to wysiwyg mode, using either "insert name" or "quick quote" functions produces an extra line break before inserted text. i took a look at your code and this behaviour seems to be expected as you check length of existing editor contents before inserting your own but somehow it doesn't work as expected with wysiwyg mode. in simple editor mode it works ok and only inserts extra line break when there is already some content in editor field. can you check this please?
|
That is a known bug. In WYSIWYG, there's some hidden formatting that causes the message length function to report a random non-zero number when the message area is empty - and I don't know how to work around the problem at this time.
Quote:
also i have a feature request of a sorts: can you make your script to set focus on editor field after inserting either quote or username? that would be logical i think, usually i want to start writing my message immediately after quoting or addressing someone. i tried to append "this.focus()" call after "this.set_editor_contents()" but somehow it doesn't work. sorry i'm no javascript expert...
|
A lot of people want to quote multiple things before starting to type a reply. If the focus kept jumping to message area every time, that would be very annoying to those people.