# Texto rico no campo descrição (WYSIWYG)

**URL:** <https://tainacan.discourse.group/t/texto-rico-no-campo-descricao-wysiwyg/2238>\
**Category:** Geral\
**Created:** [Dezembro 17, 2024, 7:24pm UTC](https://tainacan.discourse.group/t/texto-rico-no-campo-descricao-wysiwyg/2238 "2024-12-17T19:24:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alantygel](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@alantygel](https://tainacan.discourse.group/u/alantygel)\
**Post date:** [Dezembro 17, 2024, 7:24pm UTC](https://tainacan.discourse.group/t/texto-rico-no-campo-descricao-wysiwyg/2238/1 "2024-12-17T19:24:12Z")

</div>

Olá,

Ao editar um item, alguns usuários estão sentindo falta de poder inserir formatações mínimas no texto (negrito, etc). Vejo que é possível inserir código em formato HTML, mas não é lá um cenário ideial.

Já foi pensado alguma alternativa de se colocar pelo menos o campo de editor rico do Wordpress?

abs,  
alan

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Dezembro 19, 2024, 11:33am UTC](https://tainacan.discourse.group/t/texto-rico-no-campo-descricao-wysiwyg/2238/2 "2024-12-19T11:33:29Z")

</div>

Oi @alantygel, tudo bem?

Sim, este é um pedido recorrente:

> <https://github.com/tainacan/tainacan/issues/582>
>
> \*\*Context and motivation\*\*
> 
> Our textarea fields, including the metadata type, …already allow inserting links, bold and italics via some basic html (the links however are only autodetected, so we can't use labels). Many are the cases where a user wants to insert a link with labels, or a simple bullet list, etc. This means we should have a way to properly input HTML in the text fields. 
> 
> \*\*Ideal solution\*\*
> A basic WYSINECOWYG form instead of textarea. This could be done using Gutenberg's embedable component that is used in wordpress.org forums, which would represent a big improvement in terms of usability. 
> 
> \*\*Challenges\*\*
> We must mention, however, that storing HTML in text fields has it's issues, since it can cause some confusion in search and calculation of maximum of characters, for example. Extra care should also be taken to avoid exposing the plugin to new security threads via script injections.

A ideia é que possamos adicionar algumas formatações básicas como as que temos em mãos em um editor markdown. Andei experimentando uns tempos atrás o uso do próprio Gutenberg em uma versão contida, como eles fazem nos fóruns do [wordpress.org](http://wordpress.org)

Por hoje o que você pode fazer é usar as tags `<strong>` e `<em>`, além de colar links (porém sem definir os rótulos deles).
