Sfoglia il codice sorgente

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

adam 4 anni fa
parent
commit
681b9fcf4e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      src/RichTextEditor.js

+ 1
- 0
src/RichTextEditor.js Vedi File

@@ -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>