Skip to main content
Version: 1.0.0

Version Management

Control which editor version your SDK loads. Pin to a specific release, use a channel, or self-host.

How It Works

Dragble serves the editor from versioned URLs:

  • https://editor.dragble.com/latest/ — newest release (default)
  • https://editor.dragble.com/stable/ — previous major, battle-tested
  • https://editor.dragble.com/1.0.0/ — exact version, never changes

Setting the Editor Version

SDK (Vanilla JS)

dragble.init({
containerId: 'editor',
editorKey: 'db_xxx',
editorVersion: 'latest', // 'stable', 'latest', or exact like '1.0.0'
});

React

<DragbleEditor
editorKey="db_xxx"
editorVersion="1.0.0"
onReady={() => console.log('ready')}
/>

Wrapper Props (React/Vue/Angular)

Wrappers also support SDK version control:

PropTypeDefaultDescription
sdkVersionstring'latest'Which SDK build to load from CDN
sdkUrlstringFull SDK URL override (self-hosted)
editorVersionstring'latest'Which editor version to load
editorUrlstringFull editor URL override (self-hosted)

Release Channels

ChannelBehaviorUse Case
latestNewest release, updated frequentlyDefault for all customers
stablePrevious major, updated less oftenEnterprise / risk-averse
Exact (e.g. 1.2.3)Frozen snapshotCompliance, strict pinning

Self-Hosting (Enterprise)

Enterprise customers can self-host both the editor and SDK using Docker images. Override the URLs to point at your infrastructure:

dragble.init({
containerId: 'editor',
editorKey: 'db_xxx',
editorUrl: 'https://editor.your-company.com/',
});

When editorUrl is set, editorVersion is ignored. See the Self-Hosting Guide for Docker setup.

Precedence Rules

LayerResolution
EditoreditorUrl > editorVersion > default 'latest'
SDK (wrappers)sdkUrl > sdkVersion > default 'latest'

Unknown Versions

If you pass an unrecognized version string, the SDK logs a warning and falls back to latest.