• Vladyslav Lyfar 8
  • NEWBIE
  • 10 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hello everyone,
I am trying to add lightning-input-rich-text component as editTemplate for the cell of richtextarea custom type but constantly receiving engine error.
The one when I am trying to type any value

Uncaught TypeError: this.concreteComponent.showHelpMessageIfInvalid is not a function
throws at https://sparks--test--c.sandbox.vf.force.com/components/lightning/primitiveDatatableIeditTypeFactory.js:1:4612



The the other one when I click outside the rich-text-input component

Uncaught TypeError: Cannot read properties of undefined (reading 'valid') throws at https://sparks--test--c.sandbox.vf.force.com/auraFW/javascript/wyQWsVjjDIx-Xsqekbsbwg/aura_prod.js:13:40835


The code for the edit template (richTextAreaEditTmpl.html):

<template> 
<lightning-input-rich-text value={editedValue} data-inputable="true" >
</lightning-input-rich-text>
</template>

Custom type definition in customDatatable.js

richtextarea: {
            template: richTextAreaTmpl,
            editTemplate: richTextAreaEditTmpl,
            standardCellLayout: true,
            typeAttributes: []
}
 


Are rich text areas supported by datatable at all?
Thanks for help

Hello everyone,
I am trying to add lightning-input-rich-text component as editTemplate for the cell of richtextarea custom type but constantly receiving engine error.
The one when I am trying to type any value

Uncaught TypeError: this.concreteComponent.showHelpMessageIfInvalid is not a function
throws at https://sparks--test--c.sandbox.vf.force.com/components/lightning/primitiveDatatableIeditTypeFactory.js:1:4612



The the other one when I click outside the rich-text-input component

Uncaught TypeError: Cannot read properties of undefined (reading 'valid') throws at https://sparks--test--c.sandbox.vf.force.com/auraFW/javascript/wyQWsVjjDIx-Xsqekbsbwg/aura_prod.js:13:40835


The code for the edit template (richTextAreaEditTmpl.html):

<template> 
<lightning-input-rich-text value={editedValue} data-inputable="true" >
</lightning-input-rich-text>
</template>

Custom type definition in customDatatable.js

richtextarea: {
            template: richTextAreaTmpl,
            editTemplate: richTextAreaEditTmpl,
            standardCellLayout: true,
            typeAttributes: []
}
 


Are rich text areas supported by datatable at all?
Thanks for help