import * as React from "react"; import Editor from "../Editor"; import {autobind} from "core-decorators"; export class FontBoldEditor extends Editor{ @autobind onClick(){ this.setValue(!this.getValue()); } renderValueEditor(){ const value = this.getValue(); let className = "editor-icon-font-bold"; if(value === true){ className += ' editor-icon-selected'; } return (
); } }