V15 RC: Blocks do not work in the rich text editors #17711
Merged
+89
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
Fixes a regression in 15.1-rc where the block element did not render its default view in the Tiptap editor.
Due to the way browsers treat custom elements, they are not allowed to add attributes and/or child elements upon creation. They must wait until the
connectedCallback
. That means any controller that wants to add elements should also wait until the host is connected (hostConnected
).This moves the logic from the constructor to the
hostConnected
callback in the UFM render controller.What to test