Configuration parameters
Complete reference guide for all Beefree SDK configuration parameters.
Overview
How Configuration Works
const bee = new BeefreeSDK(token);
bee.start(beeConfig, template);Complete Configuration Structure
var beeConfig = {
// REQUIRED PARAMETERS
container: 'beefree-sdk-container',
// CORE EDITOR SETTINGS
language: 'en-US',
autosave: 30,
trackChanges: true,
preventClose: false,
// CONTENT CUSTOMIZATION
specialLinks: [],
mergeTags: [],
mergeContents: [],
// APPEARANCE & UI
sidebarPosition: 'left',
editorFonts: {},
defaultColors: [],
disableColorHistory: false,
disableBaseColors: false,
// TITLE BLOCK CUSTOMIZATION
titleDefaultStyles: {},
titleDefaultConfig: {},
titleMaxLevel: 'h3',
// WORKSPACE & LAYOUT
workspace: {
type: 'default',
editSingleRow: false
},
// ADVANCED FEATURES
commenting: false,
commentingThreadPreview: true,
commentingNotifications: true,
contentDialog: {},
defaultForm: {},
rowDisplayConditions: {},
rowsConfiguration: {},
advancedPermissions: {},
hooks: {},
metadata: {},
// PERMISSIONS & SECURITY
roleHash: '',
disableLinkSanitize: false,
// LOADING & PERFORMANCE
loadingSpinnerDisableOnSave: false,
loadingSpinnerDisableOnDialog: false,
// CALLBACK FUNCTIONS
onSave: function(jsonFile, htmlFile, ampHtml, templateVersion, language) {},
onChange: function(jsonFile, response) {},
onSaveAsTemplate: function(jsonFile) {},
onAutoSave: function(jsonFile) {},
onSend: function(htmlFile) {},
onLoad: function(jsonFile) {},
onError: function(errorMessage) {},
onWarning: function(alertMessage) {},
onLoadWorkspace: function(workspace) {},
onFilePickerInsert: function(data) {},
// DEBUGGING & DEVELOPMENT
debug: {
all: false,
inspectJson: false,
showTranslationKeys: false
},
// LOCALIZATION
translations: {}
};Required Parameters
Parameter
Description
Type
Core Editor Settings
language
Language
Code
Language
Code
autosave
trackChanges
preventClose
Content Customization
specialLinks
mergeTags
mergeContents
Appearance & UI Customization
sidebarPosition
editorFonts
defaultColors
disableColorHistory
disableBaseColors
Title Block Customization
titleDefaultStyles
titleDefaultConfig
titleMaxLevel
Workspace Configuration
workspace
workspace.type
workspace.editSingleRow
workspace.stage (Mobile Design Mode)
Advanced Features
commenting
commentingThreadPreview
commentingNotifications
contentDialog
defaultForm
rowDisplayConditions
rowsConfiguration
advancedPermissions
hooks
metadata
Security & Permissions
roleHash
disableLinkSanitize
Performance & Loading
loadingSpinnerDisableOnSave
loadingSpinnerDisableOnDialog
Callback Functions
onSave
onChange
onSaveAsTemplate
onAutoSave
onSend
onLoad
onError
onWarning
onLoadWorkspace
onFilePickerInsert
Development & Debugging
debug
Localization
translations
Quick Reference Examples
Basic Configuration
Advanced Configuration
Configuration with Advanced Permissions
Configuration for Collaborative Editing
Best Practices
Security Considerations
User Experience
Development Tips
Last updated
Was this helpful?

