function generateTextBlockConfig() {
const config = {
// Block 1: Short paragraph
block1: {
type: "paragraph",
maxLength: 150, // Max characters
minLines: 1, // Minimum number of lines
maxLines: 3, // Maximum number of lines
// Add other properties as needed, e.g., font size, alignment
},
// Block 2: Medium paragraph
block2: {
type: "paragraph",
maxLength: 300,
minLines: 2,
maxLines: 5,
// Add other properties as needed
},
// Block 3: Bulleted list
block3: {
type: "list",
maxLength: 200,
minItems: 2,
maxItems: 7,
// Add other properties as needed
},
// Block 4: Quote
block4: {
type: "quote",
maxLength: 250,
minLines: 1,
maxLines: 4,
// Add other properties as needed
}
};
return config;
}
// Example usage (for demonstration - you'd likely store/use this config)
const config = generateTextBlockConfig();
console.log(JSON.stringify(config, null, 2)); // Pretty print the config
Add your comment