Attributes: what do the source and selector properties do? #147
Labels
Beginners
Building Blocks
flow: approved
can move forward
flow: needs input
let's discuss this.
flow: needs review
reviewer wanted
Tutorial
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
andselector
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.
The text was updated successfully, but these errors were encountered: