Setting Font style and size

image

Hi, Im currently working on a project where we need Prosemirror to specify font style and size (as shown in the image). Is this possible? Also, if anyone has any examples of this, please post here.

Thanks!

You can add a “font_size” mark to your schema to implement it.

new Schema({
   marks: { font_size: MarkSpec } 
})

And you can reference MarkSpec.

Thank you!

hey!! I too need this feature in my project. could u please help me? how can implement Marks for applying dynamic fontSize and colors. any suggestion would be appreciated

I also need this feature. Does anyone have working examples?