codex-team / codex-team/editor.js

Block API insert and insertMany don't support BlockTunes

Open
#2,808 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.