# (Rich Text Editor) Default Font Size and Font Type

**URL:** <https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457>\
**Category:** Plugins\
**Created:** [January 31, 2023, 7:52pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457 "2023-01-31T19:52:40Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoke](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hoke/32/150258_2.png) [@hoke](https://forum.bubble.io/u/hoke)\
**Post date:** [January 31, 2023, 7:52pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/1 "2023-01-31T19:52:40Z")

</div>

I’m wondering if it is possible to somehow set the default font size and font type of the editor.

1. font size (small, normal, large, etc)
2. font type (sans serif, Arial etc).

Thanks!

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [January 31, 2023, 8:14pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/2 "2023-01-31T20:14:10Z")

</div>

Customization with vanilla Bubble plugins, that’s a funny joke

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [January 31, 2023, 8:18pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/3 "2023-01-31T20:18:47Z")

</div>

> I’m wondering if it is possible to somehow set the default font size and font type of the editor.
> 
> 1. font size (small, normal, large, etc)
> 2. font type (sans serif, Arial etc).

You can do this using custom CSS on the class `.ql-editor`… e.g.

```
.ql-editor { 
            font-size: 16px !important; 
            font-family: 'Open Sans' !important; 
           }

```

---

<div class="post-metadata">

**Author:** ![hoke](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hoke/32/150258_2.png) [@hoke](https://forum.bubble.io/u/hoke)\
**Post date:** [February 1, 2023, 6:28pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/4 "2023-02-01T18:28:07Z")

</div>

Where do I have to put this CSS code?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [February 2, 2023, 1:55pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/5 "2023-02-02T13:55:27Z")

</div>

In a HTML element, inside style tags.

```
<style>

.ql-editor { 
            font-size: 24px !important; 
            font-family: 'Open Sans' !important; 
           }

</style>
```

---

<div class="post-metadata">

**Author:** ![alcompstudio](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alcompstudio/32/159859_2.png) [@alcompstudio](https://forum.bubble.io/u/alcompstudio)\
**Post date:** [February 17, 2023, 1:19pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/6 "2023-02-17T13:19:10Z")

</div>

Can you explain in more detail exactly where to insert this custom CSS code? I can’t find where the HTML element is located… Is it in the Rich Text Editor settings? Can I have a screenshot ?

I’m using this [Rich Text Editor Plugin | Bubble](https://bubble.io/plugin/rich-text-editor-1580238841425x582072028873097200)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [February 17, 2023, 2:07pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/7 "2023-02-17T14:07:17Z")

</div>

Just add an html element to your page, and put it in there.

---

<div class="post-metadata">

**Author:** ![alcompstudio](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alcompstudio/32/159859_2.png) [@alcompstudio](https://forum.bubble.io/u/alcompstudio)\
**Post date:** [February 17, 2023, 4:19pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/8 "2023-02-17T16:19:16Z")

</div>

> [@adamhholmes](#):
>
> Just add an html element to your page, and put it in the

Thanks, I already figured it out)

---

<div class="post-metadata">

**Author:** ![toshipanda101](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@toshipanda101](https://forum.bubble.io/u/toshipanda101)\
**Post date:** [May 8, 2023, 6:11pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/9 "2023-05-08T18:11:26Z")

</div>

> [@adamhholmes](#):
>
> page, and put

Hey, could you explain how you did this please?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 8, 2023, 6:26pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/10 "2023-05-08T18:26:19Z")

</div>

> Hey, could you explain how you did this please?

I’m not entirely sure what needs explaining?..

Are you unsure how to add an element to your page? Or how to copy and paste text?

In any case, that’s all you need to do.

---

<div class="post-metadata">

**Author:** ![toshipanda101](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@toshipanda101](https://forum.bubble.io/u/toshipanda101)\
**Post date:** [May 8, 2023, 6:36pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/11 "2023-05-08T18:36:00Z")

</div>

Hello Adam,

Apologies for being vague.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/6/96dbfec613495c31efd99d6a5b63187ef7c49043.png)

I have the rich text editor here and I wanted to take out all the fonts and add the font called ‘outfit’ instead. I also only want h2 and h3 available whilst keeping all the other editing elements the same.

How would I go about doing this? Where do I put the code? Where can I find the HTML element in style tags?

Sorry for the bombardment of questions!

Thank you!

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [May 8, 2023, 6:46pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/12 "2023-05-08T18:46:03Z")

</div>

You’d have to look into using some custom JavaScript to do all of that.

---

<div class="post-metadata">

**Author:** ![toshipanda101](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@toshipanda101](https://forum.bubble.io/u/toshipanda101)\
**Post date:** [May 8, 2023, 7:20pm UTC](https://forum.bubble.io/t/rich-text-editor-default-font-size-and-font-type/244457/13 "2023-05-08T19:20:21Z")

</div>

Ah right, Cheers!
