Mollie Oun
asked on
Sharepoint 2013 Announcement Webpart summary view font type error
There seems to be an issue when I change the font type of the announcement body (when using an announcement webpart). This is what I did:
1) Add a new announcement
2) Enter some text in the body field
3) Change the font type of the text and then change the colour
When i check the page where the announcement webpart is added (configured to summary view), the font type doesn't get updated and still remains as the default font type. After using the developer tools to check, i found that there seems to be a problem with the code when the font type is changed to font name with 2 words like "comic sans", or "lucida console". No such issue when i change the font to font name with 1 word e.g. impact, tahoma, calibri.
Some selected font types have this issue, i.e. comic sans, lucida console, basically all the font types with names that consist of 2 words.
Using the developer tools, it shows:
<span style="font-family:" lucida="" console",monaco,sans-serif ;color:#ff 0000;"=""> testtest</ span>
It seems that sharepoint automatically adds some "" to the font name and so the font type doesn't get displayed properly.
1) Add a new announcement
2) Enter some text in the body field
3) Change the font type of the text and then change the colour
When i check the page where the announcement webpart is added (configured to summary view), the font type doesn't get updated and still remains as the default font type. After using the developer tools to check, i found that there seems to be a problem with the code when the font type is changed to font name with 2 words like "comic sans", or "lucida console". No such issue when i change the font to font name with 1 word e.g. impact, tahoma, calibri.
Some selected font types have this issue, i.e. comic sans, lucida console, basically all the font types with names that consist of 2 words.
Using the developer tools, it shows:
<span style="font-family:" lucida="" console",monaco,sans-serif
It seems that sharepoint automatically adds some "" to the font name and so the font type doesn't get displayed properly.
ASKER
Hi Firas, can you elaborate more on how to use ' in my code?
Thank you!
Thank you!
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
try to use ' in your code