# SCORM Player Gutenberg Blocks

This directory contains the Gutenberg block implementation for the SCORM Player plugin.

## SCORM Player Block

The main block allows you to:

1. Select a SCORM package from the dropdown of all uploaded packages
2. Adjust the height of the SCORM player iframe
3. Preview a placeholder in the editor

## Implementation Details

- The block is registered with the id `scorm-player/scorm-embed`
- The block uses the REST API endpoint `/scorm-player/v1/packages` to fetch available packages
- The block relies on the server-side rendering to use the existing shortcode functionality
- Height adjustment is available in the block settings panel

## Development

If you want to modify this block:

1. The main block JavaScript is in `scorm-block.js`
2. The block styling is in `assets/css/scorm-block.css`
3. The main PHP registration happens in the plugin's main file

## Future Enhancements

Potential enhancements for future versions:

- Add more display options like width adjustments
- Provide border styles and framing options
- Add SCORM reporting capabilities directly in the block settings 