Good point to make a commit
This commit is contained in:
16
tp-rtb-clear-format.js
Normal file
16
tp-rtb-clear-format.js
Normal file
@ -0,0 +1,16 @@
|
||||
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);
|
Reference in New Issue
Block a user