mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update editor 可以直接切换代码模式
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='is_seo_optimized']" position="before">
|
||||
<button name="action_post_debug_view" type="object" title="Settings" icon="fa-bug fa-lg" groups="base.group_no_one"/>
|
||||
<button name="action_post_code_view" type="object" title="Source Code" icon="fa-code fa-lg" groups="base.group_no_one"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -47,7 +46,7 @@
|
||||
<xpath expr="//page[@name='seo']" position="after">
|
||||
<page name="post_content" string="Content">
|
||||
<field name="content" widget="html" nolabel="1" class="oe-bordered-editor"
|
||||
options="{'style-inline': true, 'codeview': true, 'dynamic_placeholder': true}"/>
|
||||
options="{'sandboxedPreview': true, 'codeview': true, 'dynamic_placeholder': true}"/>
|
||||
</page>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='visits']" position="attributes">
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='is_seo_optimized']" position="before">
|
||||
<button name="action_page_debug_view" position="move"/>
|
||||
<button name="action_page_code_view" type="object" title="Source Code" icon="fa-code fa-lg" groups="base.group_no_one"/>
|
||||
<button name="action_page_form_view" type="object" title="Properties Set" icon="fa-file-text-o fa-lg" groups="base.group_no_one"/>
|
||||
</xpath>
|
||||
</field>
|
||||
@@ -64,6 +63,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='arch_base']" position="attributes">
|
||||
<attribute name="widget">html</attribute>
|
||||
<attribute name="options">{'sandboxedPreview': true}</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user