跳至內容
選單
此問題已被標幟

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? 

頭像
捨棄
最佳答案

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',
],
}

相關帖文 回覆 瀏覽次數 活動
4
12月 23
4055
0
11月 23
1297
2
6月 24
6373
2
4月 23
2566
2
4月 23
3156