The RadEditor content area is just like a plain HTML document when ContentAreaMode
is set to Iframe (the default option). Therefore, styles that are applied via CSS file in the CssFiles collection or using the OnClientLoad event to set inline styles to the ContentArea (the body element).
These styles are not visible in the HTML mode. The HTML mode (when not in full HTML page edit mode
) is the same as seeing the innerHTML value of the Body element of an HTML document. Shortly, the CSS files are in the head element, whereas the inline styles are in the body tag. Both of them are not visible in the HTML mode.
It would be helpful to elaborate more, so to understand what is the expected behavior and how HTML formatting in the HTML mode should be related to the default styles. Both definitions are not quite related. Formatting applied by the user is mainly inserted as inline styles and DOM changes. They are visible in the HTML mode. Although, default styles should be something that is beyond what the user should be able to control. Therefore, not available in the HTML mode.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.