24 lines
408 B
JavaScript
24 lines
408 B
JavaScript
import { html } from 'lit';
|
|
import { TpRtbBaseExtension } from './tp-rtb-base-extension.js';
|
|
|
|
class TpRtbUndo extends TpRtbBaseExtension {
|
|
constructor() {
|
|
super();
|
|
this.label = 'Undo';
|
|
}
|
|
|
|
render() {
|
|
return html`
|
|
${super.render()}
|
|
`;
|
|
}
|
|
|
|
_handleClick() {
|
|
if (this.parentEditor) {
|
|
this.parentEditor.undo();
|
|
}
|
|
}
|
|
}
|
|
|
|
customElements.define('tp-rtb-undo', TpRtbUndo);
|