Hello, I tried to use the website module and started noticing that Odoo text font size max only 62 px. What if I want to have more than 62 px? Can I change this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hello @mike chen
Hope you are doing well.
Yes, you can change the font size above 62px in Inline Text.
First you need to inherit web_editor preserve template.
Please find code in comment.
Hope it will be helpful to you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Please find code here :-
file path like:
static/src/xml/editor.xml
editor.xml
<?xml version="1.0" encoding="UTF-8"?>
<template id="template" xml:space="preserve">
<t t-name="web_editor.toolbar" t-extend="web_editor.toolbar">
<t t-jquery='div[id="font-size"] ul' t-operation='append'>
<!-- here set 66px font size.
take data-arg1="66px" -->
<li><a class="dropdown-item custom_font_size" href="#" data-call="setFontSize" data-arg1="66px">66</a></li>
</t>
</t>
</template>
After add this file in module you need to link this file in manifest
like,
'assets': {
'web_editor.assets_wysiwyg': [
'your_module_name/static/src/xml/editor.xml',
],
}
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
4
dec. 23
|
4053 | ||
|
0
nov. 23
|
1296 | ||
|
2
jun. 24
|
6369 | ||
|
2
apr. 23
|
2564 | ||
|
2
apr. 23
|
3151 |