跳至内容
菜单
此问题已终结
1 回复
3229 查看

I want to add some content after video setting options in template 'wysiwyg.widgets.video', then I write the code in my custom module:

<t t-inherit="wysiwyg.widgets.video" t-inherit-mode="extension">
<xpath expr="//*[hasclass('o_video_dialog_options')]" position="after">
<div id="videoDragDrop">some content</div>
</xpath>
</t>

but it throw an error says that module "wysiwyg" not found, then i change the code to:
<t t-inherit="web_editor.wysiwyg.widgets.video" t-inherit-mode="extension">
<xpath expr="//*[hasclass('o_video_dialog_options')]" position="after">
<div id="videoDragDrop">some content</div>
</xpath>
</t>

after update module, there no error, but it doesn't appear, how can i make it work?
形象
丢弃
最佳答案

Hello  harry,

Use this code

<t t-extend="wysiwyg.widgets.video">

        <t t-jquery=".o_video_dialog_options" t-operation="after">

            <div id="videoDragDrop">some content</div>

        </t>

    </t>

Thanks.

 

For more information Contact us:- https: //kanakinfosystems.com/odoo-development-services 

形象
丢弃
相关帖文 回复 查看 活动
0
11月 23
3245
0
4月 21
2504
1
3月 25
2518
0
8月 22
3568
1
8月 21
2959