Skip to content

Commit

Permalink
docs line-break (PR from TinaCMS) (#2670)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Wicks <[email protected]>
Co-authored-by: tina-cloud-app[bot] <58178390+tina-cloud-app[bot]@users.noreply.github.com>
  • Loading branch information
tina-cloud-app[bot] and wicksipedia authored Dec 31, 2024
1 parent 5aef30b commit f254581
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions content/docs/reference/types/rich-text.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: The "rich-text" field
last_edited: '2024-12-02T06:05:59.753Z'
last_edited: '2024-12-31T02:27:57.931Z'
next: ''
previous: ''
---
Expand Down Expand Up @@ -156,6 +156,17 @@ Results in the following response from the content API:
preselectResponse={true}
/>

### Line Breaks

To insert a line break into an empty line in TinaCMS Rich Text:

* Press Shift + Enter to create the line break
* If the line break is not followed by a line with text, it will render as a \ in the final output.\
This can be fixed by deleting and re-creating the line\
Ensure that the line break precedes text content to avoid this issue

Note: This behavior is not part of the standard Markdown specification but is specific to TinaCMS Rich Text implementation.

### Using Table

Check out how to use Table in rich text editor
Expand Down Expand Up @@ -222,7 +233,9 @@ Within table cells, support is limited to inline elements only. The following ty
* Quote
* Headings

If you try to add these types into a table cell, they will be treated as a string.![](/img/docs/rich-text/cells-1.png)**❌ Figure: Bad example - A table with block elements treated as strings**![supported-table-cell-formats](/img/docs/rich-text/cells-2.png)**✅ Figure: Good example - A table with inline elements**
If you try to add these types into a table cell, they will be treated as a string.![](/img/docs/rich-text/cells-1.png)**❌ Figure: Bad example - A table with block elements treated as strings**\
\
![supported-table-cell-formats](/img/docs/rich-text/cells-2.png)**✅ Figure: Good example - A table with inline elements**

### Automatic transforms

Expand Down

0 comments on commit f254581

Please sign in to comment.