Help

DiscussCategory: Editor configurationsDoes contentDefault works?
Yakau Krasnou asked 1 month ago

Hi

I’m trying to add general default configurations using this doc https://docs.beefree.io/content-defaults/

However, I faced the problem, that editor doesn’t reflect to any configuration I pass using contentDefaults key. (I didn’t find this key available here https://docs.beefree.io/configuration-parameters/)

However this feature https://docs.beefree.io/custom-color-palette/ works ok (so, we have supported bee version and paid plan)

I also tried to add some text and button (copied from doc) settings, but it doesn’t work

here’s the config

{

"container":"editor-container",

"loadingSpinnerTheme":"light",

"autosave":30,

"mergeTags":[

{

"value":"{{EMAIL}}",

"name":"Email"

},

{

"value":"{{FIRSTNAME}}",

"name":"Firstname"

},

{

"value":"{{LASTNAME}}",

"name":"Lastname"

},

{

"value":"{{COMPANY}}",

"name":"Company"

},

{

"value":"{{ADDRESS}}",

"name":"Address"

},

{

"value":"{{ZIP}}",

"name":"Zip"

},

{

"value":"{{CITY}}",

"name":"City"

},

{

"value":"{{PHONE}}",

"name":"Phone"

},

{

"value":"{{BIRTHDAY}}",

"name":"Birthday"

},

{

"value":"{{GENDER}}",

"name":"Gender"

}

],

"specialLinks":[

{

"type":"Standard",

"label":"Unsubscribe",

"link":"[unsubscribe_link]"

},

{

"type":"Standard",

"label":"Webversion",

"link":"[webversion_link]"

},

{

"type":"Standard",

"label":"Profilepage",

"link":"[profile_link]"

}

],

"rowDisplayConditions":[

],

"rowsConfiguration":{

"defaultRows":true,

"emptyRows":true

},

"contentDialog":{

"saveRow":{

  }

},

"editorFonts":{

"showDefaultFonts":true,

"customFonts":[

  ]

},

"defaultColors":[

"#be5454",

"#5495be"

],

"contentDefaults":{

"general":{

"linkColor":"#369f50",

"defaultFont":"’Courier New’, Courier, ‘Lucida Sans Typewriter’, ‘Lucida Typewriter’, monospace",

"backgroundColor":"#d05757",

"contentAreaBackgroundColor":"#503d3d"

},

"text":{

"html":"HELP",

"styles":{

"color":"#cccccc",

"link":"#000000"

}

},

"button":{

"label":"My New Label",

"href":"http://www.google.com",

"width":"35%",

"styles":{

"color":"#ffffff",

"fontSize":"22px",

"fontFamily":"’Comic Sans MS’, cursive, sans-serif",

"backgroundColor":"#FF819C",

"borderBottom":"0px solid transparent",

"borderLeft":"0px solid transparent",

"borderRadius":"25px",

"borderRight":"0px solid transparent",

"borderTop":"0px solid transparent",

"lineHeight":"200%",

"maxWidth":"100%",

"paddingBottom":"5px",

"paddingLeft":"20px",

"paddingRight":"20px",

"paddingTop":"5px"

},

"blockOptions":{

"paddingBottom":"20px",

"paddingLeft":"20px",

"paddingRight":"20px",

"paddingTop":"20px",

"align":"center",

"hideContentOnMobile":true

}

}

},

"advancedPermissions":{

"rows":{

"displayConditions":{

"show":false,

"locked":true

}

}

},

"uid":"make-dev-1",

"language":"en-US",

"translationsUrl":"http://localhost:3006/editor/translations/en-US.json",

"saveRows":false,

"roleHash":"conditionsoff"

}

3 Answers
Yakov answered 1 month ago

any updates?

Connor answered 1 month ago

Hi Yakov,

Thanks for reaching out. I am currently examining the situation for issues, and will report back soon.

In the meantime, please make sure you follow the syntax at https://docs.beefree.io/content-defaults/ very closely; I notice your properties (such as text, html, styles, etc.) are wrapped in string quotes.

Connor answered 1 month ago

Hi Yakov,

As a small update, we identified a small issue regarding the feature and we deployed a fix today to solve it. You should no longer have any issues with Content Defaults.

Hope this helps!

Your Answer