UNPKG

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.

28 lines (22 loc) 729 B
(function (Filters) { 'use strict'; var controller = require('./controller'); Filters.adminHeaderBuild = function (header, callback) { header.plugins.push({ route: '/plugins/embed', icon : 'fa-share-alt', name : 'Embed' }); callback(null, header); }; Filters.adminScripts = function (list, callback) { list.push('https://checkout.stripe.com/checkout.js'); callback(null, list); }; Filters.parsePost = function (payload, callback) { controller.parsePost(payload, callback); }; Filters.parseRaw = function (payload, callback) { controller.parseContent(payload, callback); } })(module.exports);