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!