()
| 21 | } |
| 22 | |
| 23 | override async didApply(): Promise<ActionApplyResult> { |
| 24 | const textBox = this.engine.element().find('[data-component="text-box"]').get(0) as any; |
| 25 | |
| 26 | this.engine.history('clear').push(textBox.props.mode); |
| 27 | |
| 28 | return { advance: true }; |
| 29 | } |
| 30 | |
| 31 | override async willRevert(): Promise<void> { |
| 32 | if (this.engine.history('clear').length > 0) { |