Skip to content

Attributes: what do the source and selector properties do? #147

@bph

Description

@bph

Discussed in #138

Originally posted by mburridge June 29, 2023
Block attributes are typically stored in the comment delimiter, and the values are fetched from there when the block is parsed to be displayed in the editor. But did you know that attribute values can also be stored in the block content? You can use the source and selector properties to determine where in the saved block the attribute values are fetched from at parse time.

This post will be an introduction to using and saving attributes - basically a friendlier and more tutorial-based version of the content in the Attributes page in the handbook, and with more examples.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Published (Done)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions