from wagtail.core.models import Page from wagtail.core.fields import RichTextField class BlogPage(Page): content = RichTextField()
from wagtail.admin.edit_handlers import FieldPanel class BlogPage(Page): content = RichTextField() content_panels = [ FieldPanel('title'), FieldPanel('content'), ]This example shows how to add the RichTextField to the Wagtail admin panel using the FieldPanel. It creates a content panel that displays the title and content fields for BlogPage in the admin interface. Package library: wagtail (Python package for Wagtail CMS)