|
@@ -231,17 +231,12 @@ export default class RichTextEditor extends Component {
|
231
|
231
|
injectedJavaScript={injectScript}
|
232
|
232
|
source={pageSource}
|
233
|
233
|
onLoad={() => this.init()}
|
234
|
|
- onShouldStartLoadWithRequest={(event) => {return this._onShouldStartLoadWithRequest(event)}}
|
235
|
234
|
/>
|
236
|
235
|
{this._renderLinkModal()}
|
237
|
236
|
</View>
|
238
|
237
|
);
|
239
|
238
|
}
|
240
|
239
|
|
241
|
|
- _onShouldStartLoadWithRequest(event) {
|
242
|
|
- return (event.url.indexOf('editor.html') != -1);
|
243
|
|
- }
|
244
|
|
-
|
245
|
240
|
escapeJSONString = function(string) {
|
246
|
241
|
return string
|
247
|
242
|
.replace(/[\\]/g, '\\\\')
|