adobe / da-live

Document Authoring is an early-access technology preview from Adobe.
https://da.live
Apache License 2.0
10 stars 16 forks source link

Don't use window.view before it's initialized. #206

Closed bosschaert closed 2 months ago

bosschaert commented 2 months ago

Description

After updating da-y-wrapper timing of certain callbacks have changed which lead to #200

window.view is used by callbacks given to EditorState and EditorView in their constructors and called before these constructors return. Previously it seems that Prosemirror was making these callbacks later.

Related Issue

Fixes #200

Motivation and Context

To be able to regenerate (and extend) da-y-wrapper.

Types of changes

Checklist:

aem-code-sync[bot] commented 2 months ago

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed. In case there are problems, just click a checkbox below to rerun the respective action.

Commits * [fb41ef9](https://github.com/adobe/da-live/commit/fb41ef966d85c1cb34b2ce15205c8e92a00c5953) :white_check_mark: (latest)