Skip to content

Commit 0b8783e

Browse files
committed
Revert "don't allow to click on links"
It doesn't conver all the cases. There's a better and simpler fix. This reverts commit 8b07524.
1 parent 0ac75f8 commit 0b8783e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/RichTextEditor.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,17 +231,12 @@ export default class RichTextEditor extends Component {
231231
injectedJavaScript={injectScript}
232232
source={pageSource}
233233
onLoad={() => this.init()}
234-
onShouldStartLoadWithRequest={(event) => {return this._onShouldStartLoadWithRequest(event)}}
235234
/>
236235
{this._renderLinkModal()}
237236
</View>
238237
);
239238
}
240239

241-
_onShouldStartLoadWithRequest(event) {
242-
return (event.url.indexOf('editor.html') != -1);
243-
}
244-
245240
escapeJSONString = function(string) {
246241
return string
247242
.replace(/[\\]/g, '\\\\')

0 commit comments

Comments
 (0)