Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3193 Lượt xem

I would like to add a few font-sizes to the web_editor toolbar.


The listed font-sizes are definded in this front end xml file:

https://github.com/odoo/odoo/blob/15.0/addons/web_editor/static/src/xml/editor.xml


This file is referenced from 2 places:

It is loaded from the toolbar javascript file

https://github.com/odoo/odoo/blob/15.0/addons/web_editor/static/src/js/editor/toolbar.js


and it is added to the web.assets_qweb assets bundle in the manifest file:

https://github.com/odoo/odoo/blob/15.0/addons/web_editor/__manifest__.py


When i saw that it was defined in an xml file, i was happy and thought i could easily change it by extending it and using an xpath query ...

But that does not seem to be as easy for front-end xml as it is for back end templates.


Any clue how to achieve this ?



Ảnh đại diện
Huỷ bỏ

Hi!
Is this available for Odoo V.16?

I've tried a step but am unable to decipher the problem. Please check https://stackoverflow.com/questions/77241853/odoo-16-inherit-template-web-toolbar-xpath-issue

I have a few days off. I will be back in the office on Monday Ocotober 9th and will handle mails upon my return.

For urgent matters, please contact info@eauzon.be

 

Câu trả lời hay nhất

Hello Jaco, im having the same problem... i copy your github repository but it still doesn't work for me. 
Have you solved it?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

This is how far i got ... but does not work yet.

Anyone an idea ?

https://github.com/jwaes/jt_webeditor_extras

Ảnh đại diện
Huỷ bỏ
Tác giả

Just following up. Found the issue. The XML for front end should not have the odoo tags enclosing the templates tag !
Code updated !

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 25
2804
3
thg 11 24
2396
1
thg 12 22
3920
3
thg 10 22
4983
2
thg 5 22
14259