diff --git a/src/UserAction.js b/src/UserAction.js index 7c89f78..578b96f 100644 --- a/src/UserAction.js +++ b/src/UserAction.js @@ -9,6 +9,7 @@ import {cache} from './cache'; import {API_VERSION_PARAM, THUHOLE_API_ROOT, API, get_json, token_param} from './flows_api'; import './UserAction.css'; +import {ColorPicker} from "./color_picker"; const BASE64_RATE=4/3; const MAX_IMG_DIAM=8000; @@ -399,6 +400,7 @@ export class ReplyForm extends Component { this.on_change_bound=this.on_change.bind(this); this.area_ref=this.props.area_ref||React.createRef(); this.global_keypress_handler_bound=this.global_keypress_handler.bind(this); + this.color_picker=new ColorPicker(); } global_keypress_handler(e) { @@ -476,7 +478,7 @@ export class ReplyForm extends Component { { this.state.preview ?