I have set the default font setting using the shown below js
The script works fine and can see intended font changes when I switch to preview mode
but in HTMLedit view intended HTML font tags and attribute are not seen
and hence when I get the content of Radeditor using
rdEditor.Content property it does not include the default settings(font attributes ) and intended font changes
The script works fine and can see intended font changes when I switch to preview mode
but in HTMLedit view intended HTML font tags and attribute are not seen
and hence when I get the content of Radeditor using
rdEditor.Content property it does not include the default settings(font attributes ) and intended font changes
rdEditor.OnClientLoad = "OnClientLoad"; string js = @" <script language='javascript'> function OnClientLoad(editor, args) { setTimeout(function() { var style = editor.get_contentArea().style; style.fontFamily= 'Calibri'; style.fontSize= 11 + 'pt'; style.color = '#1f497d'; }, 100); } </script>"; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myscriptkey", js);