Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
293
Font size and font name not working when page has default style set
posted

Description:

Here is the scenario to recreate.

1. Add htmlwebeditor to a page that has master page.

2. Add reference to a stylesheet file in master page.

3. In the stylesheet set default style for page.

*

{

font-family: Arial, Helvetica, sans-serif; /* Global parameters */

COLOR: #333333;

font-size: 16px;

}

4. Now if you select font size to any values from dropdown, the text in texteditor will reset to this default style.

5. Similar behaviour would be for font name.

Is there any way to workaround this issue. Can i refer different stylesheet file for webhtmleditor and will that cause any issue with performance.

I am apprehensive ofremoving default style in the stylesheet file as it is being used for entire application.

Any help is appreciated.

 

Parents
No Data
Reply
  • 7694
    posted

    Hello,

    I reproduced your problem and found the same behavior. That is normal, because you override all styles on the page, including default styles of WebHtmlEditor.

    You can use CSS Classes (selectors) to set styles instead of universal selectors (*).

Children
No Data