The wysiwyg abstraction layer was introduced in saas-12.2 by commitf2969923. Its goal was to provide an external interface for other modules that wanted to use the editor feature such that the editor core itself could be changed without requiring extensive changes in the other modules. This commit is adapting the wysiwyg interface to instantiate the 12.0 editor below it rather than the saas-12.2 one, thus reverting the "new editor" part off2969923itself. Part of PR 35677. Co-authored-by: Nicolas Bayet <nby@odoo.com> Co-authored-by: Antoine Guenet <age@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com>
21 lines
1.0 KiB
XML
21 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
|
|
<t t-name="web_editor.FieldTextHtml.button.translate">
|
|
<div class="btn-group float-right">
|
|
<button t-if="widget.field.translate" class="o_field_translate btn btn-secondary" style="height: 24px; padding: 1px 17px 0px 5px" aria-label="Translate" title="Translate">
|
|
<span class="fa fa-language fa-lg oe_input_icon"/>
|
|
</button>
|
|
</div>
|
|
</t>
|
|
|
|
<t t-name="web_editor.FieldTextHtml.fullscreen">
|
|
<span style="margin: 5px; position: fixed; top: 0; right: 0; z-index: 2000;">
|
|
<button class="o_fullscreen btn btn-primary" style="width: 24px; height: 24px; background-color: #337ab7; border: 1px solid #2e6da4; border-radius: 4px; padding: 0; position: relative;">
|
|
<img src="/web_editor/font_to_img/61541/rgb(255,255,255)/16" style="position: absolute; top: 3px; left: 4px;" alt="Fullscreen"/>
|
|
</button>
|
|
</span>
|
|
</t>
|
|
|
|
</templates>
|