nodebb-plugin-embed
Version:
Embed media and rich content in posts: youtube, vimeo, twitch etc. All embeds are based on the rules. You are encouraged to build your own rules to embed everything what is embeddable.
18 lines (14 loc) • 444 B
JavaScript
import Admin from './components/admin';
import connectToStores from 'alt-utils/lib/connectToStores';
import React from 'react';
import ReactDom from 'react-dom';
export const init = () => {
if (process.env.NODE_ENV !== 'production') {
console.info('Initiate ACP: Embed');
}
const AltAdmin = connectToStores(Admin);
ReactDom.render(
<AltAdmin />,
document.getElementById('acpEmbedContainer')
);
};