BookStack/public/libs/tinymce/custom-changes.md
Dan Brown cd929b2555
Made a bunch of tinymce 6 upgrade fixes
- Added workaround for new 'srcdoc' usage that's breaking content in
  Firefox, added new 'custom-changes.md' file to document for future.
- Updated old usages of 'new' when creating nodes.
- Tested and changed logic, where required, where 'editor.dom.select'
  has been used to replace the old '$' usages.
- Fixed bad boolean value being passed to 'setActive' in task list
  logic.
2022-07-18 13:18:46 +01:00

470 B

Srcdoc usage

By default, as of tiny 6, the editor would use srcdoc which prevents cookies being sent with images in Firefox as it's considered cross origin. This removes that usage to work around this case:

Relevant TinyMCE issue.

Source code change applied:

// Find:
t.srcdoc=e.iframeHTML
// Replace:
t.contentDocument.open();t.contentDocument.write(e.iframeHTML);t.contentDocument.close();