odoo:如何将textarea编辑器放置在Web表单中?

时间:2019-06-21 17:31:39

标签: javascript web odoo

我正在尝试在odoo网站上获取textarea编辑器,但可以获取。 这是我所做的尝试:

我尝试获取odoo 11中现有模块的 src 来获取textarea编辑器功能,但是失败了。 odoo插件中可用的模块是: website_forum 模块

<?xml version="1.0" encoding="utf-8"?>
<odoo>


    <template id="seller_page">
      <t t-call="website.layout">
      <script type="text/javascript" src="/website_forum/static/src/js/website_tour_forum.js"/>
        <script type="text/javascript" src="/website_forum/static/src/js/website_forum.editor.js"/>
        <link rel='stylesheet' href='/website_forum/static/src/css/website_forum.css'/>
        <script type="text/javascript" src="/website_forum/static/src/js/website_forum.js"/>

        <div class="oe_structure">
          <div class="container">
            <center><h3>Seller Leads</h3></center>
                <form action="/web_controller" method="post" data-model_name="seller.lead" data-success_page="/seller-leads-thank-you" class="s_website_form form-horizontal container-fluid mt32" enctype="multipart/form-data" data-editable-form="false">

                 <div class="form-group">
                    <label class="col-md-2 control-label mb16" for="description">Biography</label>
                    <div class="col-md-8 mb16">
                        <input name="description" id="description" style="min-height: 120px" required="True"
                            class="form-control load_editor"></input>
                    </div>
                </div>
    </form>
</odoo>

这是我得到的输出:

enter image description here

我想在这样的Web表单上获取编辑器:

enter image description here

0 个答案:

没有答案