Payload CMS Rich Text Demo

Miscellaneous15813

Overview

This page demonstrates the rich text capabilities that Payload CMS can support when properly configured.


Code

Inline

This is some code inline baby! There was a variable named meme and it was supreme!

Code block

Plaintext:

Some plain code

TITLE APPROACH:
	Mo Beigi
	Resume – Mo Beigi
	About – Mo Beigi
	Projects – Mo Beigi
	Networks – Mo Beigi
	Blog – Mo Beigi
	{blog_name} - Mo Beigi

Typescript:

type Props = CodeBlockProps & {
  className?: string;
};

C++:

// Your First C++ Program

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}

Kolin:

import kotlinx.serialization.Serializable
import kotlin.random.Random

interface Building

@Serializable
class House(
    private val rooms: Int? = 3,
    val name: String = "Palace"
) : Building {
    var residents: Int = 4
        get() {
            println("Current residents: $field")
            return field
        }

    fun burn(evacuation: (people: Int) -> Boolean) {
        rooms ?: return
        if (evacuation((0..residents).random()))


Headings

Note: H1 tag has been disabled for the blog posts type to maintain semantic heading levels.

H2

H3

H4

H5
H6

Heading Underline strikethrough

Text

This is a paragraph of text.

Bold text

Italics

Underlined

Strikethrough

All the styles

10to the power of 10!

10looks like you dropped something

External link to Example.com and Example.com (new tab)

Internal link to this post

Emoji: ✅ 📛 🙉 🚟 😖 🗻


Lists

Unordered list:

  • You can dance
  • You can jive
  • Having the time of your life
    • Ooh, see that girl
      • Watch that scene
        • Digging the dancing queen

Ordered list:

  1. Step 1
  2. Step 2
  3. Step 3
  4. Step 4
    1. Nested
      1. Nested
        1. Nested
          1. Nested


Checkbox

  • Tick!
  • Not ticked


Quote

A quote by a wise man "boogoo pls"


Tables

Fruit

Is it Red?

Is it juicy?

Can you juggle it?

Learn more

Apple

Yes

Yes

Yes

https://en.wikipedia.org/wiki/Apple

Banana

No

Yes

No

https://en.wikipedia.org/wiki/Banana

Kiwi

No

Yes

Yes

https://en.wikipedia.org/wiki/Kiwi

Watermelon

Yes *

Yes

No

Only if you're built different

https://en.wikipedia.org/wiki/Watermelon


Text Alignment

Left H2

Left paragraph

  • Left ul
  1. Left ol
Left quote

Centered H2

Centered paragraph

  • Centered ul
  1. Centered ol
Centered quote

Right H2

Right paragraph

  • Right ul
  1. Right ol
Right quote


Upload

mobeigi-photography-2023-04-22-bee-tesselaar-kabloom.webp

test.txt


Relationship

User

Unknown relationship type: users

Category

Unknown relationship type: category


File

Test Text File


Blocks

MediaBlock (Image)

MoBeigi Photography Bee Tesselaar Kabloom

MediaBlock (Image with Dark / Light variants)

Try changing the theme mode to see the theme appropriate variant!

MediaBlock (Video)

MediaBlock (Video with Dark / Light variants)

Try changing the theme mode to see the theme appropriate variant!

Embeds

Youtube

Vimeo

Twitch


Inline blocks

Blocks that have been inlined! (using inlineBlock)

  • Code:
    • Here is a full code block that is inlined:
      const hi = 1;
      let bye = 0;
  • MediaBlock:
    • Image: MoBeigi Photography Bee Tesselaar Kabloom
    • Video:
  • Embeds:
    • Youtube:
    • Vimeo:
    • Twitch:
  • File: Test Text File

Comments

Comments have been disabled for this post. Existing comments are still visible.

Showing 13 comments from 11 commenters.

  • Display picture for Mo Beigi
    Mo Beigi

    This is an example comment!

    It’s 100% organic, no preservatives.

    All comments on this page have been auto-generated for demo purposes.

    • Display picture for Liam
      Liam

      Wow, this comment is so fresh, I feel healthier just reading it!

      • Display picture for Sara
        Sara

        With all this freshness, I feel like I should be out hiking in the mountains instead of sitting at my desk!

        • Display picture for Liam
          Liam

          Haha, I can already picture it—commenting from the top of a mountain with the best Wi-Fi signal ever!

          • Display picture for Sara
            Sara

            You've peaked with this comment.

    • Display picture for Priya
      Priya

      This comment is so smooth, it’s like a perfectly timed punchline in a stand-up routine!

      • Display picture for Diego
        Diego

        Totally! Should we be taking notes?

  • Display picture for Emily
    Emily

    Payload CMS: Proof that not all payloads weigh you down!

    • Display picture for Jalal
      Jalal

      You can say that again!

      • Display picture for José
        José

        that again!

    • Display picture for आरव
      आरव

      Its pretty fast, not going to lie. ⚡⚡⚡

    • Display picture for 李伟
      李伟

      I am using it on my blog too, love the customizability.

    • Display picture for فاطمة
      فاطمة

      I am a big fan of the project!