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

Block API insert and insertMany don't support BlockTunes #2808

Open
WolfBearGames opened this issue Aug 8, 2024 · 2 comments
Open

Block API insert and insertMany don't support BlockTunes #2808

WolfBearGames opened this issue Aug 8, 2024 · 2 comments
Labels

Comments

@WolfBearGames
Copy link

When inserting blocks with the insert() or insertMany() methods applied Block Tunes are ignored. I looked at the code and only the "data" property for a block is used to create it. the "tunes" property is not handled.
So it is impossible to insert BlockData that had Block tunes applied without losing them.

I had created a BlockTune to have different display variants for paragraphs... now I might have to rework this and fork the paragraph tool to insert the variants i need directly into the plugin.

@KyleLeduc
Copy link

I'm also running into this issues, I'm trying to insert a block and it seems like the internal insert method contains a parameter for the block tunes but it isn't exposed in the blocks api insert method

Internal method

Exposed API

Was there a reason it wasn't included?

@aala-h-m
Copy link

aala-h-m commented Oct 15, 2024

facing the same issue, I need to insert some blocks with specific tunes other than the defaults or at least have the ability to edit the tunes of the block through code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants