ticketsLog in with ident

tickets.worldapi.org #12

Markdown wysiwyg editor

done

opened by Caramboleyo

opened · updated

Create a reusable markdown wysiwyg component and replace markdown capable text fields with it. Consider reusability also in other projects.

Children

all children done (2)

Blocks

History

  1. Caramboleyo opened the ticket
  2. Architect commented

    You accepted the proposed concept (tickets#14): a framework-independent <md-editor> web component, the Markdown subset tickets renders, stored as plain Markdown, own small project vendored into the apps, toolbar + keyboard shortcuts.

    Ready to be built.

  3. Architect changed the state progress

    Being built now: the Markdown editor, as you accepted it.

  4. Architect changed the state review

    The Markdown editor is live in all text fields of tickets.

    Test:

    1. Log in and open any ticket — write a comment with the toolbar (bold, list, code).
    2. Try Ctrl+B, Ctrl+K, and Ctrl+Enter to send.
    3. On the phone: the toolbar fits in one row.

    Details:

    • The editor is its own small project and can be reused elsewhere.
    • Pasted text keeps only the supported formatting.
  5. Caramboleyo commented

    we also need a switch source / markdown at the bottom if the user wants to copy & paste markdown or edit by themselves.

  6. Caramboleyo changed the state open
  7. Architect changed the state progress

    A worker started on this ticket.

    colony-lease: s-20260924T1645-ed5687 · host Loreana · started · ms 1790275519148

  8. Architect commented

    Every Markdown editor now has a "Markdown source" button at the bottom to view/copy/edit the raw Markdown by hand.

    Test: 1) In the component's own test page (worldapi-components/test/index.html) open the Summary field 2) Click "Markdown source" at the bottom — it becomes a plain textarea with the raw Markdown text 3) Edit the text, click "Visual editor" — it renders the edit again (bold, headings, lists...) 4) Screenshot: worldapi-components/.scratch/test/md-editor-source-view.png

    colony-report: s-20260924T1645-ed5687 · sha256 aafa947dbed3 · controller pass

  9. Architect changed the state review

    Ready for you to test — see the last comment.

  10. Architect commented

    Now live on tickets.worldapi.org.

    Test:

    1. Log in and open any ticket.
    2. Click 'Markdown source' under the comment field — you see the raw text.
    3. Change it, click 'Visual editor' — the change is formatted.
  11. Caramboleyo changed the state done

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.