Links: post picker and paste conversion in the editor

Aperta
#4 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Start with the link dialog opened by Cmd-K and the editor's existing post-list polling, which already supplies titles and statuses client-side. Paste handling is the other entry point: a pasted /posts/<slug> or /p/<id> URL over a selection should become a post:<id> link with an undoable notice. Done means search filters as you type with status badges, undo restores the pasted URL, and draft and deleted targets render distinctly. The issue depends on the id-links work, so confirm that is merged first.

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

Descrizione

Context

With post:<id> links supported, writing one should not need the id. The editor already polls the post list, so title and status are available client-side.

Scope

  • In the link dialog (Cmd-K), accept a URL or search posts by title; picking a post inserts post:<id>.
  • Pasting the editor URL of a post (/posts/<slug> or /p/<id>) over selected text converts to a post: link, with an undo-able notice.
  • Internal links render differently from external ones: normal for a live target, dashed underline with a "draft" label for a draft, error colour for a missing target.

Acceptance criteria

  • Search filters as you type and shows each post's status badge.
  • Undo after a paste conversion restores the pasted URL.
  • A link to a deleted post is visibly marked.

Depends on the id-links issue. Estimate: about 5 hours.

Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

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 mrgnw/cfcms

Tutte le issue di mrgnw/cfcms

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.