function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lourdes Montero CamposLourdes Montero Campos 

Cannot paste table into lightning-input-rich-text

I have a lightning-input-rich-text inside of a wrapper lwc(so that i can use it inside of a Aura cmp) and when we try to copy over a table, it comes over in the form of a paragraph. Here is the code:
.html
<template>
                <lightning-input-rich-text disabled-categories={disabledCategories}  valid={isValid} message-when-bad-input={badInputMesage}    ></lightning-input-rich-text>
    </template>
.js
import { LightningElement, api, track } from 'lwc';

export default class InputRichTextWrapper extends LightningElement {
    @api defaultVal;
    @api disabledCategories = '';
    @track isValid = true;
    @track badInputMesage = '';
    initialRender = true;

//after the first time the component is rendered, need to focus it, otherwise if there is an error
//displayed in the component, the styling would be off.
renderedCallback(){
    if(this.initialRender){
        this.initialRender = false; 
        this.template.querySelector('lightning-input-rich-text').value = this.defaultVal;
        this.template.querySelector('lightning-input-rich-text').focus(); 
        this.template.querySelector('lightning-input-rich-text').blur();
    } 
} 

//gets called from parent if need to change the valid attribute and the error.
@api setValidAttribute(isValidIn, message){
    this.isValid = isValidIn;
    this.badInputMesage = message;
}
@api getText(){
    return this.template.querySelector('lightning-input-rich-text').value;
} 
@api setText(valueIn){
    console.log('setting text' + valueIn);
    this.template.querySelector('lightning-input-rich-text').value = valueIn;
}
}