Links: post picker and paste conversion in the editor

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
HTML
Estrellas
0
Forks
0
Merge medio
1 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mrgnw/cfcms

Todos los issues de mrgnw/cfcms

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.