summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/composer_text_input/composer_text_input.xml
blob: a14fdee87121bd7fa6ef8f701de5609fd4fdc5a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

    <t t-name="mail.ComposerTextInput" owl="1">
        <div class="o_ComposerTextInput">
            <t t-if="composer">
                <t t-if="composer.hasSuggestions">
                    <ComposerSuggestionList
                        composerLocalId="props.composerLocalId"
                        isBelow="props.hasMentionSuggestionsBelowPosition"
                    />
                </t>
                <textarea class="o_ComposerTextInput_textarea o_ComposerTextInput_textareaStyle" t-att-class="{ 'o-composer-is-compact': props.isCompact }" t-esc="composer.textInputContent" t-att-placeholder="textareaPlaceholder" t-on-click="_onClickTextarea" t-on-focusin="_onFocusinTextarea" t-on-focusout="_onFocusoutTextarea" t-on-keydown="_onKeydownTextarea" t-on-keyup="_onKeyupTextarea" t-on-input="_onInputTextarea" t-ref="textarea"/>
                <!--
                     This is an invisible textarea used to compute the composer
                     height based on the text content. We need it to downsize
                     the textarea properly without flicker.
                -->
                <textarea class="o_ComposerTextInput_mirroredTextarea o_ComposerTextInput_textareaStyle" t-att-class="{ 'o-composer-is-compact': props.isCompact }" t-esc="composer.textInputContent" t-ref="mirroredTextarea" disabled="1"/>
            </t>
        </div>
    </t>

</templates>