-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/3279 default block text #3283
Conversation
🤖 Pull request artifacts
|
|
||
// Set the default block to stackable/text | ||
if ( settings.stackable_text_default_block ) { | ||
setTimeout( () => { | ||
setDefaultBlockName( 'stackable/text' ) | ||
} ) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding it here in the global settings, you can create your own "default-text-block" plugin and register it using registerPlugin
@Arukuen When copy pasting 2 or more paragraphs, the first and last block is a Text block which is correct but the blocks in the middle are Paragraph blocks instead of Text blocks. Screen.Recording.2024-08-15.at.3.1.mp4 |
…re/paragraph in between
// Set the default block to stackable/text | ||
setDefaultBlockName( 'stackable/text' ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might run multiple times, I believe this is a React Component
@Arukuen Remaining issue: Toggle setting disables upon refresh. Feature still works correctly but the toggle setting is showing it incorrectly. Screen.Recording.2024-09-02.at.10.mp4 |
fixes #3279