|
@@ -177,6 +177,7 @@ export default class RichTextEditor extends Component {
|
177
|
177
|
onBridgeMessage={(message) => this.onBridgeMessage(message)}
|
178
|
178
|
injectedJavaScript={injectScript}
|
179
|
179
|
source={pageSource}
|
|
180
|
+ onLoad={() => this.init()}
|
180
|
181
|
/>
|
181
|
182
|
{this._renderLinkModal()}
|
182
|
183
|
</View>
|
|
@@ -370,6 +371,10 @@ export default class RichTextEditor extends Component {
|
370
|
371
|
this._sendAction(actions.restoreSelection);
|
371
|
372
|
}
|
372
|
373
|
|
|
374
|
+ init() {
|
|
375
|
+ this._sendAction(actions.init);
|
|
376
|
+ }
|
|
377
|
+
|
373
|
378
|
async getTitleHtml() {
|
374
|
379
|
return new Promise((resolve, reject) => {
|
375
|
380
|
this.titleResolve = resolve;
|