Hi,
I'm developing an electronic log using ELOG & FCKeditor. I've added an extra toolbar button which adds a timestamp to the current entry. The idea is to create a new paragraph, put the time in bold (HH:MM) followed by a space, and leave the cursor position at the end of that line. The code is here:
window.top.getTime() returns a string in the format HH:MM.
In Firefox, this works fine - the cursor ends up at the end of the line, and if you start typing, the text appears on the end of the line. In IE6, the cursor looks as if it's in the right place, but as soon as you start typing, the text appears on a line underneath. Any idea what might be happening here?
Ben
I'm developing an electronic log using ELOG & FCKeditor. I've added an extra toolbar button which adds a timestamp to the current entry. The idea is to create a new paragraph, put the time in bold (HH:MM) followed by a space, and leave the cursor position at the end of that line. The code is here:
oEditor.ExecuteNamedCommand ('SelectAll'); oEditor.Selection.Collapse(false); //go to end oEditor.InsertHtml('<p><b>' + window.top.getTime() + '</b> <span>');
window.top.getTime() returns a string in the format HH:MM.
In Firefox, this works fine - the cursor ends up at the end of the line, and if you start typing, the text appears on the end of the line. In IE6, the cursor looks as if it's in the right place, but as soon as you start typing, the text appears on a line underneath. Any idea what might be happening here?
Ben