17 lines
410 B
JavaScript
17 lines
410 B
JavaScript
import { TpRtbBaseExtension } from './tp-rtb-base-extension.js';
|
|
|
|
class TpRtbClearFormat extends TpRtbBaseExtension {
|
|
constructor() {
|
|
super();
|
|
this.label = 'Clear Format';
|
|
}
|
|
|
|
_handleClick() {
|
|
if (this.parentEditor && this.parentEditor.editor) {
|
|
this.parentEditor.editor.chain().focus().unsetAllMarks().run();
|
|
}
|
|
}
|
|
}
|
|
|
|
customElements.define('tp-rtb-clear-format', TpRtbClearFormat);
|