PDA

View Full Version : [CLOSED] Setting the background color of html editor



SymSure
Sep 13, 2012, 11:14 PM
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.



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

Daniil
Sep 14, 2012, 8:30 AM
Hi,

This works for Ext.NET v2 as well.
http://forums.ext.net/showthread.php?16991&p=72820&viewfull=1#post72820