Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Bold button not working
posted

Hello,

For some wierd reason the bold button is not working in my html editor.  I am using a subset of buttons and adding the control to the page like so:

<ig_spell:WebSpellChecker ID="igSpellCheck" runat="server"><DialogOptions ShowNoErrorsMessage="true" /></ig_spell:WebSpellChecker>
<ig_edit:WebHtmlEditor Width="95%" ID="txtEdit" SpellCheckerID="igSpellCheck" runat="server">
    <Toolbar>
        <ig_edit:ToolbarButton Type="Bold" runat="server" />
        <ig_edit:ToolbarButton Type="Italic" runat="server" />
        <ig_edit:ToolbarButton Type="Underline" runat="server" />
        <ig_edit:ToolbarImage Type="Separator" runat="server" />
        <ig_edit:ToolbarButton Type="JustifyLeft" runat="server" />
        <ig_edit:ToolbarButton Type="JustifyCenter" runat="server" />
        <ig_edit:ToolbarButton Type="JustifyRight" runat="server" />
        <ig_edit:ToolbarImage Type="Separator" runat="server" />
        <ig_edit:ToolbarButton Type="UnorderedList" runat="server" />
        <ig_edit:ToolbarButton Type="OrderedList" runat="server" />
        <ig_edit:ToolbarImage Type="Separator" runat="server" />
        <ig_edit:ToolbarButton Type="Outdent" runat="server" />
        <ig_edit:ToolbarButton Type="Indent" runat="server" />       
        <ig_edit:ToolbarImage Type="Separator" runat="server" />
        <ig_edit:ToolbarButton Type="SpellCheck" runat="server" />
    </Toolbar>
</ig_edit:WebHtmlEditor>

When I click bold with some text highlighted, nothing happens.  The source in html view doesn't even change.  All the other buttons function fine.

Thanks

Parents
No Data
Reply
  • 215
    Verified Answer
    posted

    I figured out the problem.

    The table I was adding the editor to had a stylesheet with a bold font in it.  For some reason this caused the editor to completely ignore the bold functionality.  I tested it using a stylesheet with underline and italic styles, and the same thing happened.  I fixed the problem by reseting the font styles in the cell I was adding the editor to, and now all is happy.

Children
No Data