瀏覽代碼

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

adam 4 年之前
父節點
當前提交
681b9fcf4e
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/RichTextEditor.js

+ 1
- 0
src/RichTextEditor.js 查看文件

@@ -302,6 +302,7 @@ export default class RichTextEditor extends Component {
302 302
           onMessage={(message) => this.onMessage(message)}
303 303
           source={pageSource}
304 304
           onLoad={() => this.init()}
305
+          originWhitelist={['*']}
305 306
         />
306 307
         {this._renderLinkModal()}
307 308
       </View>