type Model struct {
Content string `paw:"rich_text_editor:220"`// 220 is the 'min-height' style for the editor, if not set, the default is 500
}
model := Model{}
paw.Form{
Url: "/Save",
Body: paw.Gen(model).RichTextEditorConfig(paw.RichTextEditorConfig{
UploadServer: "/AttachmentUpload",
UploadFieldName: uploadFieldName,
UploadMaxFileSize: uploadFileMaxSize,
}),
}Full example: https://v12w.x34y.com/lib/paw/-/blob/master/paw_docs/RichTextEditor.go
⬇️️ saved form
⬇️ render a standalone rich text (readonly mode)