Media Pane
The Media pane is located in the left sidebar library and provides access to all your media assets.Accessing Media
Open the Media pane by:- Clicking the Media tab in the library panel
- Using keyboard shortcuts
- The pane ID is
PANE_IDS.Media
packages/story-editor/src/components/library/panes/media/
Media Types
The editor supports multiple media types:- Images
- Videos
- Audio
Supported formats: JPEG, PNG, GIF, WebPImages can be:
- Uploaded from your computer
- Selected from WordPress media library
- Inserted via hotlink URL
- Used as page backgrounds or elements
Uploading Media
Upload Button
Upload media through the Media Upload Button:packages/story-editor/src/components/library/panes/media/local/mediaPane.js:38-42
Drag and Drop
Drop files directly into the editor:
Reference:
packages/story-editor/src/components/canvas/canvasUploadDropTarget.js
Hotlink Insertion
Insert media from external URLs:packages/story-editor/src/components/library/panes/media/local/hotlink/
WordPress Media Library Integration
The editor integrates with WordPress media library:Local Media Provider
Media state is managed through theuseLocalMedia hook:
packages/story-editor/src/components/library/panes/media/local/mediaPane.js:96-108
Media Actions
Available media operations:- Upload - Add new media files
- Delete - Remove media from library
- Update - Modify media metadata
- Fetch - Load media with pagination
packages/story-editor/src/app/media/local/actions.js
Media Gallery
The media gallery displays your uploaded media:Paginated Gallery
packages/story-editor/src/components/library/panes/media/common/paginatedMediaGallery.js
Gallery Features
- Infinite scroll - Load more media as you scroll
- Search - Filter media by name or type
- Type filtering - Show only images, videos, or all types
- Preview - Hover to see larger preview
Media Filters
packages/story-editor/src/components/library/panes/media/local/mediaPane.js:89-93
Media Search
Search your media library:packages/story-editor/src/components/library/panes/media/local/mediaPane.js:40
Third-Party Media (Media3P)
Access stock media from integrated providers:Media3P Integration
TheMedia3pApiProvider enables stock media:
packages/story-editor/src/storyEditor.js:77
Available Providers
Integrated stock media services (configuration dependent):- Stock photo providers
- Video libraries
- Icon collections
packages/story-editor/src/app/media/media3p/
Inserting Media into Stories
Media Element Component
packages/story-editor/src/components/library/panes/media/common/mediaElement.js
Insertion Methods
- Click to Insert
- Drag and Drop
- Replace Existing
Click any media item in the gallery to add it to the current page.The element is inserted at the center of the canvas with default sizing.
Media Selection Hook
packages/story-editor/src/components/library/panes/media/local/useOnMediaSelect.js
Video-Specific Features
Video Optimization
Prompt users to optimize videos:packages/story-editor/src/components/library/panes/media/local/videoOptimizationDialog/
Video Trimming
Trim videos directly in the editor:
Reference:
packages/story-editor/src/components/videoTrim/
Video Captions
Add captions to videos for accessibility:packages/story-editor/src/components/panels/design/captions/
Media Recording
Record media directly in the editor:- Camera access for photos/videos
- Microphone access for audio
- Direct upload to media library
packages/story-editor/src/components/library/panes/media/local/mediaRecording/
Media Processing
Media undergoes automatic processing:Image Processing
- Resize for optimal dimensions
- Generate thumbnails
- Optimize file size
- Extract dominant colors
Video Processing
- Generate poster images
- Extract metadata (duration, dimensions)
- Optimize for web playback
- Create preview thumbnails
Audio Processing
- Normalize audio levels
- Extract duration
- Generate waveform preview
packages/story-editor/src/app/media/local/reducers/
Page Backgrounds
Use media as page backgrounds:Background Images
- Solid colors
- Gradient colors
- Image backgrounds
- Pattern overlays
packages/story-editor/src/components/panels/design/pageBackground/
Background Videos
Add background videos to pages:- Automatically muted
- Loop playback
- Optimized for performance
- Fallback to poster image
Background Audio
Add audio tracks to pages:packages/story-editor/src/components/panels/design/pageBackgroundAudio/
Media Upload Limits
Upload constraints are configured per WordPress installation:- Maximum file size (typically 64MB for videos)
- Allowed file types
- Concurrent upload limit
Upload limits are determined by your WordPress and server configuration. Contact your host to increase limits if needed.
Resource Placeholders
While media loads, placeholders are shown:packages/story-editor/src/components/canvas/renderResourcePlaceholder.js
Media Attribution
For third-party media, attribution is automatically managed:packages/story-editor/src/components/library/panes/media/common/attribution.js
Best Practices
Next Steps
Text & Styling
Add and style text elements
Animations
Animate your media elements
Page Templates
Use templates with placeholder media