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

Is it possible to append + prepend <span> tags without using Widgets?

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

The issue names MatchDecorator and WidgetType but no repository files or tests; start by checking the repository’s CodeMirror decoration examples and the relevant CodeMirror documentation. Done would be a clear explanation of how the shown markup can be produced, or a specific request for a supported way to achieve it.

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

Descrizione

I want to achieve this with codemirror

https://prnt.sc/m9ean50m9p2E

https://prnt.sc/HDSz9jvvBi33

as you can see in the second image, the html code is:

<div class="cm-line">
    testing 
	<span class="wa-marker">*</span>
	<span class="wa-bold">line</span>
	<span class="wa-marker">*</span>
</div>

I have tried using MatchDecorator, but it can only wrap ONE <span> tag around the MATCH

How is it possible that this example managed to prepend + append <span class="wa-marker">*</span> around the BOLD <span> tag?
Clearly they are not using WidgetType because there are no .cm-widgetBuffer <img>

How is it possible that they can achieve this?

they are using codemirror too

Lingua principale
TypeScript
Stelle
2.3k
Fork
162
Merge medio
2h 41m
PR unite (30g)
1

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 uiwjs/react-codemirror

Tutte le issue di uiwjs/react-codemirror

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.