codex-team / codex-team/editor.js

Block move hooks for content structure validation ?

Open
#951 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Hi, I am evaluating your wonderful lib for a project.

I have a requirement that is to lock certain block structure, for example a heading followed by some images then another heading then some images.

I hope to listen to block moving events or add some pre / post block moving hooks to validate if the move is applicable and enforce the structure.

Is it possible to do so? I have NOT found clues from documentation. Or is there other way to enforce content structure?

Thanks in advance...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the block-moving behavior and existing documentation for Editor.js lifecycle events; the issue names no files or tests. Done means determining whether pre- or post-move hooks can validate the structure and documenting or scoping a supported way to enforce it.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.