Support for `<raw-text-block>`
I maintainer di solito rispondono entro 8 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- html, markdown, react-native
- Ambito
- mobile
Direzione di ricerca
Start by tracing the editor entry points for setValue(), code blocks, and the proposed toggleRawTextBlock() behavior. Compare how the editor preserves editable content and HTML for code blocks, then determine how a raw-text-block would remain plain text without codeblock styling. Done means callers can insert and edit the block while the underlying HTML retains its raw-text-block boundaries.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Thank you for this amazing library! ❤️
Is there a way to add a <raw-text-block> block such that content inside the this block stay as plain text and can be edited as plain text thru out the editor life cycle. I think this would be an easy escape hatch while we work on supporting unsupported syntax. For example, when user copy paste in a nested list, or a table, the editor value would be the following:
<html>
<p>some other content</p>
<raw-text-block>
- list 1
- sub list 1
- sub list 2
- list 2
</raw-text-block>
<raw-text-block>
header 1 | header 2
--- | ---
a | b
c | d
</raw-text-block>
</html>
and the rendered result can stay as plain text, like this (except the raw-text-block shouldn't use codeblock styling)
Something similar to allowing users to insert a plain <textarea /> block in the editor HTML code.
Is your feature request related to a problem? Please describe.
Partially. I'm looking into a way to allow users to type in unsupported syntax. Main blocking syntax are:
- nested lists
- code block with language
- table
Describe the solution you'd like
Give caller a way to insert raw-text-block, similar to codeblocks. Maybe something like this:
- caller calls
toggleRawTextBlock()(via a button, or when we detect unsupported syntax when we callsetValue(), ex, during copy pasting, or editing message) - inserts
<raw-text-block>some content</raw-text-block>in the editor value - allows users to edit the raw text block content
- the underlying HTML stay as
<raw-text-block>some content</raw-text-block>thru out the edit
Describe alternatives you've considered
- Use codeblock. Assign codeblock language as text so that the content stay unchanged. But i can't find a way to assign code block language
- Allow users to add plain textarea tags. Either in my app, or in the library fork
Additional context
I use https://github.com/software-mansion/enriched-markdown to render the sent messages as markdown. I'm transitioning my app from a raw TextInput into this library. There are many existing messages that are sent from plain TextInput are now not-editable using the enriched-html input 😢 .
- Lingua principale
- C
- Stelle
- 1.4k
- Fork
- 69
- Merge medio
- 9g 22h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di software-mansion/react-native-enriched-html
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
software-mansion/react-native-enriched-html#824 ·
I maintainer di solito rispondono entro 8 giorni
-
[iOS] Checkbox checked state lost/misplaced after an inline imageForse già presa @henrikra l’ha presa 3 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
software-mansion/react-native-enriched-html#819 · 1 commento ·
I maintainer di solito rispondono entro 8 giorni
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
software-mansion/react-native-enriched-html#818 · 1 commento ·
I maintainer di solito rispondono entro 8 giorni
-
[iOS] Tags not parsed on iOS below a certain string lengthForse già presa @hejsztynx l’ha presa 5 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
software-mansion/react-native-enriched-html#811 · 3 commenti ·
I maintainer di solito rispondono entro 8 giorni
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
software-mansion/react-native-enriched-html#810 · 1 commento ·
I maintainer di solito rispondono entro 8 giorni
Tutte le issue di software-mansion/react-native-enriched-html
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
quickjs-ng/quickjs#1836 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
open-quantum-safe/liboqs#2637 ·
I maintainer di solito rispondono entro 1 giorno
-
Go device SDK: Whisper transcriber keeps buffering and transcribing audio appended after Stop()Forse già presa @apoorvdarshan l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
BasedHardware/omi#22770 ·
I maintainer di solito rispondono entro 1 giorno
-
fido_do_ecdh() reports any getKeyAgreement failure as FIDO_ERR_INTERNALForse già presa @brlumen l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
joncampbell123/dosbox-x#6698 ·
I maintainer di solito rispondono entro 1 giorno