Friday, 13 April 2012

Infragistics Web Html Editor font-size ,font -name drop down display selected value

We have dropdowns in WebHtmlEditor control to select Font, Font Size, Formatting, Style and Insert.after selecting the value in dropdowns to display it use the following method


 function msgEditor_BeforeAction(oEditor, actID, oEvent, p4, p5, p6, p7, p8) {
        try {
            if (p6 == 'select') {
                if (actID == 'FontName') {
                    var _font = document.getElementById('Fontstyle');
                    _font.innerText = p5;
                }
                else if (actID == 'FontSize') {
                    var _fontsize = document.getElementById('Size');
                    _fontsize.innerText = p5;


                }
            }
        }


        catch (ex) {
        }
    }
,