<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4630.0">
<TITLE>WYSIWYG Formatting Styles</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P ALIGN=LEFT><SPAN LANG="en-us">Hi all,</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">I am trying to add formatting styles to the drop down list in the WYSIWYG editor. After much analysis, I found that this seems to be created by the following code (in: system/workplace/jsp/editors/msdhtml/mainpage.txt):</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><script LANGUAGE="vbscript"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">Sub getStyles()</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> ' Create the block fmt names holder</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> Set fmt = CreateObject("DEGetBlockFmtNamesParam.DEGetBlockFmtNamesParam.1")</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> ' Get the localized strings for the DECMD_SETBLOCKFMT command</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> EDITOR.EDIT_HTML.ExecCommand DECMD_GETBLOCKFMTNAMES, OLECMDEXECOPT_DONTPROMPTUSER, fmt</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> ' Put the localized strings into a (JavaScript) array</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> i = 0</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> For Each fmtName In fmt.Names</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> setStyles i, fmtName</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> i = i + 1</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> Next</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">End Sub</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"></script></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"><object ID="ObjBlockFormatInfo" CLASSID="clsid:8D91090E-B955-11D1-ADC5-006008A5848C" VIEWASTEXT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"> </object></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">Seemingly calling a class specific to Microsoft Internet Explorer and registered in the windows registry. What I want to know is:</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">1- Is this really the class that creates the styles in the formatting list?</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">2- Is there a way to add styles to the drop down list?</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">3- Is there a way to remove styles from the drop down list?</SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us">Any assistance will be much appreciated.</SPAN><A NAME=""><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><A NAME=""><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>