<van-popup show="{{ show }}" position="bottom" round custom-style="height: 100%;" bind:close="onClose">
    <view class="editor_toolbox">
        <block wx:if="{{editable}}">
            <image class="image" mode="heightFix" src="../../../static/image/richfile/icon-save.png" bindtap="save" />
            <image class="image" mode="heightFix" src="../../../static/image/richfile/icon-undo.png" data-method="undo" bindtap="edit" />
            <image class="image" mode="heightFix" src="../../../static/image/richfile/icon-redo.png" data-method="redo" bindtap="edit" />
            <My_upload accept='image' binduploadCallback="insertImgEdit">
                <image class="image up" mode="heightFix" src="../../../static/image/richfile/icon-img.png" />
            </My_upload>
            <My_upload accept='video' binduploadCallback="insertVideoEdit">
                <image class="image up" mode="heightFix" src="../../../static/image/richfile/icon-video.png" />
            </My_upload>
            <image class="image" mode="heightFix" src="../../../static/image/richfile/icon-text.png" data-method="insertText" bindtap="edit" />
            <image class="image" mode="heightFix" src="../../../static/image/richfile/icon-clear.png" bindtap="clear" />
            <image class="image" mode="heightFix" src="../../../static/image/richfile/close.png" bindtap="closeShow" />
        </block>
        <view class="back" wx:else bindtap="closeShow">
            <van-icon name="arrow-left" /> 返回
        </view>
    </view>
    <view style="padding-top: 50px;">
        <mp-html id="article" container-style="padding:20px" content="{{content}}" editable="{{editable}}" bindremove="remove" />
    </view>
    <block wx:if="{{modal}}">
        <view class="mask" />
        <view class="modal">
            <view class="modal_title">{{modal.title}}</view>
            <input class="modal_input" value="{{modal.value}}" maxlength="-1" auto-focus bindinput="modalInput" />
            <view class="modal_foot">
                <view class="modal_button" bindtap="modalCancel">取消</view>
                <view class="modal_button" style="color:#576b95;border-left:1px solid rgba(0,0,0,.1)" bindtap="modalConfirm">确定</view>
            </view>
        </view>
    </block>
</van-popup>