---
title: Cloud API Reference
description: URL parameters, loading events, and debugging for Jodit Cloud.
keywords: jodit cloud, api reference, url parameters, loading events, debugging
---

# API Reference

## URL Parameters

The script supports the following parameters:

```
https://cloud.xdsoft.net/v4/jodit-pro/?key=YOUR_API_KEY&callback=myCallback&version=4.0.1
```

- `key` - Your API key (required)
- `callback` - JSONP callback function (optional)
- `version` - Specific version to load (overrides settings)

## Loading Events

```javascript
// Track loading progress
JoditLoader.on('progress', percent => {
	console.log(`Loaded: ${percent}%`);
});

JoditLoader.on('ready', () => {
	console.log('Jodit ready to use');
});

JoditLoader.on('error', error => {
	console.error('Loading error:', error);
});
```

## Loading Verification

Make sure the script loads correctly:

```javascript
// Check in browser console
console.log('JoditLoader available:', typeof JoditLoader !== 'undefined');
console.log('Jodit available:', typeof Jodit !== 'undefined');
```

## Error Handling

```javascript
JoditLoader.ready()
	.then(() => {
		try {
			const editor = Jodit.make('#editor');
			console.log('Editor successfully initialized');
		} catch (error) {
			console.error('Editor initialization error:', error);
		}
	})
	.catch(error => {
		console.error('Jodit loading error:', error);
	});
```

## Common Issues

1. **API key not working** - Check referrer settings in your [account dashboard](/jodit/pro/cab/)
2. **Script not loading** - Make sure the API key is specified correctly
3. **Version conflicts** - Check that no other version of Jodit is loaded
