New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
get_contentArea
Returns a reference to the editor's content area.
JavaScript
function get_contentArea()
You can use this method for example to customize the appearance of the editor's content area. The following example demonstrates how to apply different style properties to the content area and change its look:
ASP.NET
<script type="text/javascript">
function OnClientLoad(editor, args)
{
var style = editor.get_contentArea().style;
style.backgroundColor = "black";
style.color = "red";
style.fontFamily = "Arial";
style.fontSize = "15";
}
</script>
<telerik:radeditor runat="server" OnClientLoad="OnClientLoad" ID="RadEditor1"></telerik:radeditor>