This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
RE: Default font for ActiveX rich text editor ~Sven Kifoogenli 9.Jul.03 03:55 PM a Web browser Domino Designer 6.0.1All Platforms
There is, but it's very flaky. I found that the the control had to be on screen in order for the setting to work, otherwise Javascript told me there was an error and the control wasn't initialised. To get around this I had to scroll to the applet, then run the command, and then scroll back to the top of the form again - very annoying and looks bad too when the form loads. You can't hide it to change the font either because the same problem occurs.
The code for changing the font size is:
tbContentElement.ExecCommand(DECMD_SETFONTSIZE, OLECMDEXECOPT_DODEFAULT,<FONT HERE AS INTEGER>);
where tbcontentElement is the name of your toolbar. (it's normally tb plus the name of the field you're using.)