Skip to content
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

Merged
merged 8 commits into from
Sep 5, 2024
Merged

feat/3279 default block text #3283

merged 8 commits into from
Sep 5, 2024

Conversation

Arukuen
Copy link
Contributor

@Arukuen Arukuen commented Aug 8, 2024

fixes #3279

Copy link

github-actions bot commented Aug 8, 2024

🤖 Pull request artifacts

file commit
pr3283-stackable-3283-merge.zip 4ec9a16

github-actions bot added a commit that referenced this pull request Aug 8, 2024
Comment on lines 69 to 75

// Set the default block to stackable/text
if ( settings.stackable_text_default_block ) {
setTimeout( () => {
setDefaultBlockName( 'stackable/text' )
} )
}
Copy link
Contributor

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

github-actions bot added a commit that referenced this pull request Aug 10, 2024
src/welcome/admin.js Outdated Show resolved Hide resolved
github-actions bot added a commit that referenced this pull request Aug 15, 2024
@andeng1106
Copy link

@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

github-actions bot added a commit that referenced this pull request Aug 28, 2024
Comment on lines 4 to 5
// Set the default block to stackable/text
setDefaultBlockName( 'stackable/text' )
Copy link
Contributor

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

src/block/text/transforms.js Show resolved Hide resolved
github-actions bot added a commit that referenced this pull request Aug 28, 2024
@andeng1106
Copy link

@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

github-actions bot added a commit that referenced this pull request Sep 4, 2024
@bfintal bfintal merged commit c1994bb into develop Sep 5, 2024
1 of 6 checks passed
@bfintal bfintal deleted the feat/3279-default-block-text branch September 5, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change default block to Stackable Text through the settings
3 participants