Editor Embedding
Embed the rooomAvatars Editor in an iframe, pass startup settings through URL parameters, and exchange runtime updates with postMessage.
Are you an LLM? You can read better optimized documentation at /docs/rooom-avatars/editor.md for this page in Markdown format
Components
URL Parameters
Use URL Parameters to configure display options and pass the API token in the hash fragment.
Iframe Messaging
Use Iframe Messaging to send runtime updates and receive editor events through window.postMessage.
Configuration Schema
Use Configuration Schema to build the avatar settings object shared by URL parameters, messages, and API requests.
Key Features
iframeintegration with a fixed editor origin.- API token delivery through the URL hash fragment, not through a query parameter.
- Initial avatar settings through a URL-encoded JSON query parameter.
- Runtime configuration updates through
rooom-avatars-configmessages. - Completion messages that include the avatar ID, model URL, preview URL, name, and configuration.