]> BookStack Code Mirror - bookstack/blob - public/libs/tinymce/custom-changes.md
Made a bunch of tinymce 6 upgrade fixes
[bookstack] / public / libs / tinymce / custom-changes.md
1
2
3 ### Srcdoc usage
4
5 By default, as of tiny 6, the editor would use srcdoc which prevents cookies being sent with images in Firefox as 
6 it's considered cross origin. This removes that usage to work around this case:
7
8 [Relevant TinyMCE issue](https://github.com/tinymce/tinymce/issues/7746).
9
10 Source code change applied:
11
12 ```javascript
13 // Find:
14 t.srcdoc=e.iframeHTML
15 // Replace:
16 t.contentDocument.open();t.contentDocument.write(e.iframeHTML);t.contentDocument.close();
17 ```