[opencms-dev] WYSIWYG Formatting Styles

Shama Sukul ssukul at spto.org
Fri Jun 25 00:22:02 CEST 2004


Hi all,

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):

<script LANGUAGE="vbscript">
Sub getStyles()
        ' Create the block fmt names holder
        Set fmt =
CreateObject("DEGetBlockFmtNamesParam.DEGetBlockFmtNamesParam.1")
        ' Get the localized strings for the DECMD_SETBLOCKFMT command
        EDITOR.EDIT_HTML.ExecCommand DECMD_GETBLOCKFMTNAMES,
OLECMDEXECOPT_DONTPROMPTUSER, fmt
        ' Put the localized strings into a (JavaScript) array
        i = 0
        For Each fmtName In fmt.Names
                setStyles i, fmtName
                i = i + 1
        Next
End Sub
</script>

<object ID="ObjBlockFormatInfo"
CLASSID="clsid:8D91090E-B955-11D1-ADC5-006008A5848C" VIEWASTEXT>
        </object>

Seemingly calling a class specific to Microsoft Internet Explorer and
registered in the windows registry.  What I want to know is:
1- Is this really the class that creates the styles in the formatting
list?
2- Is there a way to add styles to the drop down list?
3- Is there a way to remove styles from the drop down list?

Any assistance will be much appreciated.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040625/e447239b/attachment.htm>


More information about the opencms-dev mailing list