Is it possible to append + prepend <span> tags without using Widgets?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
I want to achieve this with codemirror
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
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 162
- Avg merge
- 2h 41m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uiwjs/react-codemirror
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
uiwjs/react-codemirror#766 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
uiwjs/react-codemirror#765 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
uiwjs/react-codemirror#770 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
uiwjs/react-codemirror#767 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
uiwjs/react-codemirror#757 · 2 comments ·
All issues in uiwjs/react-codemirror
Similar issues
-
refactor
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
tomnewport/memprot-topo#55 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
WalletConnect/walletconnect-monorepo#7368 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
BU-Spark/se-chem-apll#47 ·
-
embed: handleTurboSignMessage header comment says the signing page posts to '*' (it never does)Opendocumentation
Difficulty 2/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 70/100
udistrital/paginaweb_root#23 ·