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.
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 (*).