Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
className={classnames('ant-btn-flag', {
'ant-btn-checked': FontStyle.isBold(this.state.fontStyle),
})}
icon="bold"
onClick={this.toggleBold}
/>
<button>
</button><button style="{{">
</button><button>
<i>
</i></button>
toggleUnderline = () => {
this.executeCommand('underline')
const current = (this.state.fontStyle as number) || 0
const fontStyle = FontStyle.isUnderlined(this.state.fontStyle)
? current - FontStyle.underlined
: current + FontStyle.underlined
this.setState({ fontStyle })
}