Skip to content

Instantly share code, notes, and snippets.

@Frelseren
Last active December 13, 2021 13:47
Show Gist options
  • Save Frelseren/4221ac69569bd1b7430424929973ee7a to your computer and use it in GitHub Desktop.
Save Frelseren/4221ac69569bd1b7430424929973ee7a to your computer and use it in GitHub Desktop.
import { api } from 'lwc'
import LightningInputRichText from 'lightning/inputRichText';
export default class CustomInput extends LightningInputRichText {
@api
getContent() {
console.log('get content');
return this.value;
}
@api
setCustomContent(value) {
console.log('set content');
this.value = value;
}
constructor() {
super();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment