Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

How to insert() embed programmatically?

Aperta
#16 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

The issue names no repository files or tests; start with the editor.blocks.insert('embed', {source: url}, {}, index, true) call shown and trace how the Embed Tool handles the service and embed URL values. Done would be a documented, supported way to insert an embed from only its source URL, or a clear explanation that callers must provide the other values.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

For example, imagine typing the source URL in a text input, then feeding it to the insert() method:

editor.blocks.insert('embed', {source: url}, {}, index, true)

Of course, that won't work because the service and embed URL have not been set.

How can you insert an embed block based just on the source URL, without parsing the service and embed URL yourself?

Lingua principale
TypeScript
Stelle
159
Fork
105
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di editor-js/embed

Tutte le issue di editor-js/embed

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.