Browse Source

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 8b07524110.
Yevhen Pavliuk 8 years ago
parent
commit
0b8783e459
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      src/RichTextEditor.js

+ 0
- 5
src/RichTextEditor.js View File

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