That worked beautifully. Thank you so much. It's simple, almost elegant. I'd never used the TestFormatRemove function before. Mistakenly, I was using the remove styles function. Thanks.
Deb Deborah Tinsley Assoc. Librarian of Visual Resources Kansas City Art Institute [EMAIL PROTECTED] 816 802 3395 On 2/20/07 7:33 PM, "Tim Mansour" <[EMAIL PROTECTED]> wrote: > On 21/02/2007, at 4:53 am, Deborah Tinsley wrote: > >> Say you copied something from a web page that was in 14 pt. >> Helvetica Red, >> bold, you could design a custom menu function that would revert it >> to the >> field default - i.e. 10 pt, Verdana, Black, plain when pasting. > > Deborah, a custom function isn't necessary here--and neither is a > script. Just set your auto-enter options to strip formatting from the > field (remembering to uncheck "Do not replace existing value of > field"), eg: > > TextFormatRemove ( fieldName ) > > You can also keep certain attributes: in one of my solutions I strip > out all font, size and colour information but leave Bold/Italic as > these attributes are used on the client's web site: > > TextFontRemove ( TextColourRemove (TextSizeRemove ( fieldName ) ) ) >
