Skip to main content
Home

Main navigation

  • About
    • Program at a glance
    • Venue and rooms
    • Lunch
    • Contribution
    • Accomodation
    • FAQs
    • In the Media
    • Team
  • Schedule
    • Sessions Overview
    • Mautic Days
    • Venue map
  • Speakers
  • Sponsors
  • Tracks
User account menu
  • Log in
Event Platform Header CTA Pictures

Breadcrumb

  1. Home
  2. Structured content within CKEditor 5. Do we still need paragraphs?

Structured content within CKEditor 5. Do we still need paragraphs?

Room
HS13 (2nd floor)
Time Slot
Thu 3:00pm to 3:45pm (7/20/23)
Session length
Long session - 45min, including Q&A
Audience
Intermediate
Session Category
Innovation & The future

The Paragraphs module has become the de-facto approach to modelling a parent/child field structure within nodes. It's a tried and tested way of organising data and separating presentation from content.

This rigidity can be great, but the strictness is reflected in the authoring experience. Think of it as structure first. You need to know what paragraph type you want before you can produce any content.

Sometimes that's a barrier to content authoring. A lot of content is inherently more freeform. As an editor, you want to start with a blank page, write some rough content, and organise it into components later. You want an editing experience closer to Google Docs or Microsoft Office.

Drupal 10 and CKEditor 5 open up some more avenues in this space.

CKEditor 5 has an internal data model that's distinct from both the stored data and the resulting HTML. It's a document editor rather than an HTML editor. With that in mind, we can define our own document structure and plugins for things that we might previously implemented as paragraphs.

This talk will demonstrate this approach. We'll go though putting together a component that is editable within CKEditor, is stored in a semantic way and is themable with twig.

We'll also illustrate when this is not the right approach, and when multiple entities organised hierarchically make more sense.

Speaker(s)
Profile picture for user erik.erskine

Erik Erskine

Senior Developer at Annertech
Speaker biography

Erik Erskine

Erik is a web developer based in Stockholm, Sweden. He works for Annertech doing all things related to Drupal site building and backend development, with a particular focus on migration and data structures.

Session Keywords
Drupal Site-Building
Innovation
Share:

Platinum Sponsors

Logo 1xinternet

Gold Sponsors

D shaped logo and the name Droptica
Logo AgileDrop
Logo Amazee.io

Silver Sponsors

Logo Kraut.Hosting GmbH
dropsolid logo
Logo EOR Digital GmbH
Logo Druid.fi

Media Partner

Logo Kurier.at
droptimes logo

Funded by

wko logo
Meeting Destination Vienna

Footer

  • Contact
  • Code of Conduct
  • Data Privacy
  • Media Policy
  • FAQs
  • Imprint

Copyright © Drupal Dev Days 2024. All rights reserved.

Webdesign by acolono GmbH, implementation by Alex Milkovskyi

Webhosting by amazee.io
Powered by Drupal