I think that there are two possible approaches that you could take...
If you wanted the string to be inserted automatically into the field when it is updated, have a look at the 'sqlw' option. This replaces the field value with a computed value using MySQL. So you could concatentate the date/time/user onto the end of the field as you write it.
If you only want it to work if you hit a key or button, have a look at using the htmlarea script in the htmlarea function. It is very easy to create new buttons that can do arbitrary things - and if you look in the documentation you will see that one of the examples is creating a button that inserts the date. That would be easy to extend to include the time - the only thing I'm not sure about is where it would get the username from. The way I've written the htmlarea extension, it only allows you to use the default config for htmlarea, so if you wanted to do this, you would need to change the default config, or if you want I can look at adding an option to the extension to use a specific htmlarea config.
|