froala / angular-froala-wysiwyg

Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
735 stars 202 forks source link

Cannot update configuration values once editor is open, especially when auth token needs to be changed in case when expired #466

Open yousafravian opened 3 years ago

yousafravian commented 3 years ago

In am currently using a mechanism where my auth token is changed every five minutes and i have provided auth token in request header option, but when token is changed/refreshed, I change auth token using : this.editorOptions['requestHeaders']['Authorization'] =bearer ${token}; But froala which is still open uses old token in requests until I close and reopen froala.

Is there any way so that I could update the token value while the editor is still open.