This question has been flagged
1 Reply
2174 Views

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?
Avatar
Discard
Best Answer

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 

Avatar
Discard