Skip to main content
Jack Sleight .DEV

Guides

Importing HTML into Statamic’s Bard fieldtype

Statamic’s Bard fieldtype stores values as ProseMirror documents, so if you’re importing existing HTML with a PHP script it makes sense to convert it to the nodes and marks Bard expects. This guide outlines how to convert HTML to ProseMirror, a couple of gotchas, and finally how… More

Importing HTML into Statamic’s Bard fieldtype

Statamic’s Bard fieldtype stores values as ProseMirror documents, so if you’re importing existing HTML with a PHP script it makes sense to convert it to the nodes and marks Bard expects. This guide outlines how to convert HTML to ProseMirror, a couple of gotchas, and finally how… More