# Improve the Rich Text editor behavior for code snippets

**URL:** <https://community.fibery.io/t/improve-the-rich-text-editor-behavior-for-code-snippets/5747>\
**Category:** Bugs & Issues\
**Tags:** rich-text\
**Created:** [January 24, 2024, 6:46pm UTC](https://community.fibery.io/t/improve-the-rich-text-editor-behavior-for-code-snippets/5747 "2024-01-24T18:46:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuri\_BC](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/yuri_bc/32/8803_2.png) [@Yuri\_BC](https://community.fibery.io/u/Yuri_BC)\
**Post date:** [January 24, 2024, 6:46pm UTC](https://community.fibery.io/t/improve-the-rich-text-editor-behavior-for-code-snippets/5747/1 "2024-01-24T18:46:22Z")

</div>

This is a dedicated post to highlight the importance of a well-functioning rich text editor, that is useful for people like developers (which group is growing fast) to document a mix of code snippets and documentation.

There are some issues with:

(1)  
Importing or pasting code snippets, as well as mix of text and code snippets, where code blocks are not displayed well, with risk of text corruption. [A simple script to convert Markdown to rich text? - #8 by Yuri\_BC](https://community.fibery.io/t/a-simple-script-to-convert-markdown-to-rich-text/5738/8)

(2)  
The lanuage specifier in pasted code is deleted by the rich text editor upon pasting it. It require manually reselecting it. [How to insert the programming language for a code block?](https://community.fibery.io/t/how-to-insert-the-programming-language-for-a-code-block/5720)

All this is very problematic for developers that may want to use Fibery.

---

<div class="post-metadata">

**Author:** ![Yuri\_BC](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/yuri_bc/32/8803_2.png) [@Yuri\_BC](https://community.fibery.io/u/Yuri_BC)\
**Post date:** [January 24, 2024, 6:59pm UTC](https://community.fibery.io/t/improve-the-rich-text-editor-behavior-for-code-snippets/5747/2 "2024-01-24T18:59:17Z")

</div>

I question the choice for ProseMirror, since ProseMirror is designed as a framework for building custom rich-text editors, allowing for deep customization. However, this level of control also requires more development effort (which may not be Fibery its priority or ability), as compared to more out-of-the-box solutions like TinyMCE or CKEditor, which offer a wide range of features and plugins with less initial setup.
