This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when rich content is created.
function onRichContentCreated(handler: function): void;
handler(event: RichContentCreatedEnvelope): void | Promise<void>
import { ricos } from "@wix/events";
ricos.onRichContentCreated((event) => {
// handle your event here
});