Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
const { lang, setOptions = {}, width = '100%' } = this.props;
const editor = suneditor.create(this.state.id, {
plugins: getPlugins(setOptions),
width,
lang: getLanguage(lang)
});
const {
insertHTML,
setContents,
appendContents,
disable,
enable,
hide,
show,
showToolbar = true,
enableToolbar = true,
onScroll,
onClick,