Browse Source

update:增加originWhitelist,防止IOS下无法加载本地html的bug

adam 4 years ago
parent
commit
681b9fcf4e
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/RichTextEditor.js

+ 1
- 0
src/RichTextEditor.js View File

302
           onMessage={(message) => this.onMessage(message)}
302
           onMessage={(message) => this.onMessage(message)}
303
           source={pageSource}
303
           source={pageSource}
304
           onLoad={() => this.init()}
304
           onLoad={() => this.init()}
305
+          originWhitelist={['*']}
305
         />
306
         />
306
         {this._renderLinkModal()}
307
         {this._renderLinkModal()}
307
       </View>
308
       </View>