Sep 13, 2012, 10:14 PM
[CLOSED] Setting the background color of html editor
Hi,
i am setting the background color of html editor using the syntax below. when the window renders the backgriound color shows for just a second and disappears.
Also from javascript I am setting the class using the following code. it behaves also as the code above just flashes for a second and the background goes back to white.
i am setting the background color of html editor using the syntax below. when the window renders the backgriound color shows for just a second and disappears.
// css
.highlight
{
background: #ffffcc !important;
}
<ext:HtmlEditor ID="HtmlEditorNewGuidelineNameNewResultSet" runat="server" Height="245" FieldBodyCls="highlight"
AutoScroll="true" EnableLists="true" EnableColors="true" EnableFormat="true"
EnableTheming="true" EnableSourceEdit="false" EnableFontSize="false" AnchorHorizontal="100%"
FieldLabel="step">
<Listeners>
</Listeners>
</ext:HtmlEditor>
Also from javascript I am setting the class using the following code. it behaves also as the code above just flashes for a second and the background goes back to white.
App.htmlEditorid.inputEl.addCls("highlight");
how can the background be set both ways (declarative and from javascript)
Last edited by Daniil; Sep 18, 2012 at 12:47 PM.
Reason: [CLOSED]