|
@@ -60,47 +60,47 @@ export default class RichTextEditor extends Component {
|
60
|
60
|
}
|
61
|
61
|
|
62
|
62
|
blurEditor() {
|
63
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.blurEditor();`);
|
|
63
|
+ this._sendAction(actions.blurEditor);
|
64
|
64
|
}
|
65
|
65
|
|
66
|
66
|
setBold() {
|
67
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setBold();`);
|
|
67
|
+ this._sendAction(actions.setBold);
|
68
|
68
|
}
|
69
|
69
|
|
70
|
70
|
setItalic() {
|
71
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setItalic();`);
|
|
71
|
+ this._sendAction(actions.setItalic);
|
72
|
72
|
}
|
73
|
73
|
|
74
|
74
|
setUnderline() {
|
75
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setUnderline();`);
|
|
75
|
+ this._sendAction(actions.setUnderline);
|
76
|
76
|
}
|
77
|
77
|
|
78
|
78
|
heading1() {
|
79
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setHeading('h1');`);
|
|
79
|
+ this._sendAction(actions.heading1);
|
80
|
80
|
}
|
81
|
81
|
|
82
|
82
|
heading2() {
|
83
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setHeading('h2');`);
|
|
83
|
+ this._sendAction(actions.heading2);
|
84
|
84
|
}
|
85
|
85
|
|
86
|
86
|
heading3() {
|
87
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setHeading('h3');`);
|
|
87
|
+ this._sendAction(actions.heading3);
|
88
|
88
|
}
|
89
|
89
|
|
90
|
90
|
heading4() {
|
91
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setHeading('h4');`);
|
|
91
|
+ this._sendAction(actions.heading4);
|
92
|
92
|
}
|
93
|
93
|
|
94
|
94
|
heading5() {
|
95
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setHeading('h5');`);
|
|
95
|
+ this._sendAction(actions.heading5);
|
96
|
96
|
}
|
97
|
97
|
|
98
|
98
|
heading6() {
|
99
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setHeading('h6');`);
|
|
99
|
+ this._sendAction(actions.heading6);
|
100
|
100
|
}
|
101
|
101
|
|
102
|
102
|
setParagraph() {
|
103
|
|
- this.refs.webviewbridge.sendToBridge(`zss_editor.setParagraph();`);
|
|
103
|
+ this._sendAction(actions.setParagraph);
|
104
|
104
|
}
|
105
|
105
|
|
106
|
106
|
removeFormat() {
|