Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 65d82d2. Configure here.
| if ( modelRoot.childCount < 2 ) { | ||
| // Only insert the paragraph body placeholder when the root actually accepts `paragraph`. | ||
| // Custom/inline roots that do not accept `$block` are intentionally skipped. | ||
| if ( modelRoot.childCount < 2 && schema.checkChild( modelRoot, 'paragraph' ) ) { |
There was a problem hiding this comment.
_fixBodyElement missing title support guard unlike other methods
Medium Severity
_fixBodyElement guards on schema.checkChild(modelRoot, 'paragraph') but unlike every other post-fixer and method in this file (_fixTitleElement, _getTitleElement, getBody, the view post-fixer, and the Shift+Tab handler), it does not also guard on schema.checkChild(modelRoot, 'title'). A custom root that accepts paragraph but not title would get an unwanted empty body-placeholder paragraph inserted at position 1 — even though no title structure exists or is expected on that root.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 65d82d2. Configure here.


🚀 Summary
A brief summary of what this PR changes.
📌 Related issues
💡 Additional information
Optional: Notes on decisions, edge cases, or anything helpful for reviewers.
🧾 Checklists
Use the following checklists to ensure important areas were not overlooked.
This does not apply to feature-branch merges.
If an item is not relevant to this type of change, simply leave it unchecked.
Author checklist
Reviewer checklist
t()(if any).